@looopy-ai/core 2.1.22 → 2.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ export interface TraceContext {
8
8
  export interface TelemetryConfig {
9
9
  serviceName?: string;
10
10
  serviceVersion?: string;
11
- environment?: string;
11
+ stage?: string;
12
12
  otlpEndpoint?: string;
13
13
  enabled?: boolean;
14
14
  }
@@ -76,16 +76,16 @@ export function initializeTracing(config) {
76
76
  }
77
77
  const serviceName = config?.serviceName || 'looopy';
78
78
  const serviceVersion = config?.serviceVersion || '1.0.0';
79
- const environment = config?.environment || process.env.NODE_ENV || 'development';
79
+ const stage = config?.stage || process.env.STAGE || 'dev';
80
80
  DEFAULT_LOGGER.trace({
81
81
  serviceName,
82
82
  serviceVersion,
83
- environment,
83
+ stage,
84
84
  }, 'Initializing OpenTelemetry tracing');
85
85
  const resource = resourceFromAttributes({
86
86
  [ATTR_SERVICE_NAME]: serviceName,
87
87
  [ATTR_SERVICE_VERSION]: serviceVersion,
88
- 'deployment.environment': environment,
88
+ 'deployment.environment': stage,
89
89
  });
90
90
  const otlpEndpoint = config?.otlpEndpoint ||
91
91
  process.env.OTEL_EXPORTER_OTLP_ENDPOINT ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@looopy-ai/core",
3
- "version": "2.1.22",
3
+ "version": "2.1.23",
4
4
  "description": "RxJS-based AI agent framework",
5
5
  "repository": {
6
6
  "url": "https://github.com/looopy-ai/lib"