@brizz/sdk 0.1.6 → 0.1.7

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/preload.cjs CHANGED
@@ -240,6 +240,11 @@ function resolveConfig(options) {
240
240
  return resolvedConfig;
241
241
  }
242
242
 
243
+ // src/internal/constants.ts
244
+ var BRIZZ_SDK_VERSION = "brizz.sdk.version";
245
+ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
246
+ var SDK_LANGUAGE = "typescript";
247
+
243
248
  // src/internal/instrumentation/registry.ts
244
249
  var import_instrumentation_anthropic = require("@traceloop/instrumentation-anthropic");
245
250
  var import_instrumentation_bedrock = require("@traceloop/instrumentation-bedrock");
@@ -351,6 +356,11 @@ var import_exporter_logs_otlp_http = require("@opentelemetry/exporter-logs-otlp-
351
356
  var import_resources = require("@opentelemetry/resources");
352
357
  var import_sdk_logs2 = require("@opentelemetry/sdk-logs");
353
358
 
359
+ // src/internal/version.ts
360
+ function getSDKVersion() {
361
+ return "0.1.7";
362
+ }
363
+
354
364
  // src/internal/log/processors/log-processor.ts
355
365
  var import_api3 = require("@opentelemetry/api");
356
366
  var import_sdk_logs = require("@opentelemetry/sdk-logs");
@@ -1147,7 +1157,9 @@ var LoggingModule = class _LoggingModule {
1147
1157
  serviceName: config.appName
1148
1158
  });
1149
1159
  const resourceAttributes = {
1150
- "service.name": config.appName
1160
+ "service.name": config.appName,
1161
+ [BRIZZ_SDK_VERSION]: getSDKVersion(),
1162
+ [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1151
1163
  };
1152
1164
  if (config.environment) {
1153
1165
  resourceAttributes["deployment.environment"] = config.environment;
@@ -1600,7 +1612,9 @@ var _Brizz = class __Brizz {
1600
1612
  const registry = InstrumentationRegistry.getInstance();
1601
1613
  const manualInstrumentations = registry.getManualInstrumentations();
1602
1614
  const resourceAttributes = {
1603
- "service.name": resolvedConfig.appName
1615
+ "service.name": resolvedConfig.appName,
1616
+ [BRIZZ_SDK_VERSION]: getSDKVersion(),
1617
+ [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1604
1618
  };
1605
1619
  if (resolvedConfig.environment) {
1606
1620
  resourceAttributes["deployment.environment"] = resolvedConfig.environment;