@brizz/sdk 0.1.6 → 0.1.8

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.
package/dist/index.cjs CHANGED
@@ -362,6 +362,11 @@ function resolveConfig(options) {
362
362
  return resolvedConfig;
363
363
  }
364
364
 
365
+ // src/internal/constants.ts
366
+ var BRIZZ_SDK_VERSION = "brizz.sdk.version";
367
+ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
368
+ var SDK_LANGUAGE = "typescript";
369
+
365
370
  // src/internal/instrumentation/registry.ts
366
371
  var import_instrumentation_anthropic2 = require("@traceloop/instrumentation-anthropic");
367
372
  var import_instrumentation_bedrock2 = require("@traceloop/instrumentation-bedrock");
@@ -473,6 +478,11 @@ var import_exporter_logs_otlp_http = require("@opentelemetry/exporter-logs-otlp-
473
478
  var import_resources = require("@opentelemetry/resources");
474
479
  var import_sdk_logs2 = require("@opentelemetry/sdk-logs");
475
480
 
481
+ // src/internal/version.ts
482
+ function getSDKVersion() {
483
+ return "0.1.8";
484
+ }
485
+
476
486
  // src/internal/log/processors/log-processor.ts
477
487
  var import_api3 = require("@opentelemetry/api");
478
488
  var import_sdk_logs = require("@opentelemetry/sdk-logs");
@@ -1270,7 +1280,9 @@ var LoggingModule = class _LoggingModule {
1270
1280
  serviceName: config.appName
1271
1281
  });
1272
1282
  const resourceAttributes = {
1273
- "service.name": config.appName
1283
+ "service.name": config.appName,
1284
+ [BRIZZ_SDK_VERSION]: getSDKVersion(),
1285
+ [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1274
1286
  };
1275
1287
  if (config.environment) {
1276
1288
  resourceAttributes["deployment.environment"] = config.environment;
@@ -1755,7 +1767,9 @@ var _Brizz = class __Brizz {
1755
1767
  const registry = InstrumentationRegistry.getInstance();
1756
1768
  const manualInstrumentations = registry.getManualInstrumentations();
1757
1769
  const resourceAttributes = {
1758
- "service.name": resolvedConfig.appName
1770
+ "service.name": resolvedConfig.appName,
1771
+ [BRIZZ_SDK_VERSION]: getSDKVersion(),
1772
+ [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1759
1773
  };
1760
1774
  if (resolvedConfig.environment) {
1761
1775
  resourceAttributes["deployment.environment"] = resolvedConfig.environment;