Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

[Fix]: `Cost by App` and `Cost by Env` panels on dashboard (#717)

Patcherc7df0734c577
diff --git a/src/client/package-lock.json b/src/client/package-lock.json
index 70ebb23b..c4c4bc51 100644
--- a/src/client/package-lock.json
+++ b/src/client/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "openlit",
- "version": "1.13.0",
+ "version": "1.13.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "openlit",
- "version": "1.13.0",
+ "version": "1.13.1",
"dependencies": {
"@anthropic-ai/sdk": "^0.21.1",
"@clickhouse/client": "^1.1.0",
diff --git a/src/client/package.json b/src/client/package.json
index fe041449..c6faf65a 100644
--- a/src/client/package.json
+++ b/src/client/package.json
@@ -1,6 +1,6 @@
{
"name": "openlit",
- "version": "1.13.0",
+ "version": "1.13.1",
"private": true,
"scripts": {
"dev": "next dev",
diff --git a/src/client/src/constants/traces.ts b/src/client/src/constants/traces.ts
index 01ae9f3b..9010343f 100644
--- a/src/client/src/constants/traces.ts
+++ b/src/client/src/constants/traces.ts
@@ -74,6 +74,19 @@ export const TraceMapping: Record<TraceMappingKeyType, TraceMappingValueType> =
path: "StatusCode",
isRoot: true,
},
+ applicationName: {
+ label: "App Name",
+ type: "string",
+ path: "service.name",
+ isRoot: true,
+ },
+ environment: {
+ label: "Environment",
+ type: "string",
+ path: "deployment.environment",
+ icon: Container,
+ isRoot: true,
+ },
// Exception
serviceName: {
@@ -123,19 +136,6 @@ export const TraceMapping: Record<TraceMappingKeyType, TraceMappingValueType> =
prefix: SpanAttributesGenAIPrefix,
icon: PyramidIcon,
},
- applicationName: {
- label: "App Name",
- type: "string",
- path: "application_name",
- prefix: SpanAttributesGenAIPrefix,
- },
- environment: {
- label: "Environment",
- type: "string",
- path: "environment",
- prefix: SpanAttributesGenAIPrefix,
- icon: Container,
- },
type: {
label: "Type",
type: "string",