@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.js CHANGED
@@ -223,6 +223,11 @@ function resolveConfig(options) {
223
223
  return resolvedConfig;
224
224
  }
225
225
 
226
+ // src/internal/constants.ts
227
+ var BRIZZ_SDK_VERSION = "brizz.sdk.version";
228
+ var BRIZZ_SDK_LANGUAGE = "brizz.sdk.language";
229
+ var SDK_LANGUAGE = "typescript";
230
+
226
231
  // src/internal/instrumentation/registry.ts
227
232
  import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
228
233
  import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
@@ -336,6 +341,11 @@ import {
336
341
  LoggerProvider
337
342
  } from "@opentelemetry/sdk-logs";
338
343
 
344
+ // src/internal/version.ts
345
+ function getSDKVersion() {
346
+ return "0.1.7";
347
+ }
348
+
339
349
  // src/internal/log/processors/log-processor.ts
340
350
  import { context } from "@opentelemetry/api";
341
351
  import { BatchLogRecordProcessor, SimpleLogRecordProcessor } from "@opentelemetry/sdk-logs";
@@ -1132,7 +1142,9 @@ var LoggingModule = class _LoggingModule {
1132
1142
  serviceName: config.appName
1133
1143
  });
1134
1144
  const resourceAttributes = {
1135
- "service.name": config.appName
1145
+ "service.name": config.appName,
1146
+ [BRIZZ_SDK_VERSION]: getSDKVersion(),
1147
+ [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1136
1148
  };
1137
1149
  if (config.environment) {
1138
1150
  resourceAttributes["deployment.environment"] = config.environment;
@@ -1588,7 +1600,9 @@ var _Brizz = class __Brizz {
1588
1600
  const registry = InstrumentationRegistry.getInstance();
1589
1601
  const manualInstrumentations = registry.getManualInstrumentations();
1590
1602
  const resourceAttributes = {
1591
- "service.name": resolvedConfig.appName
1603
+ "service.name": resolvedConfig.appName,
1604
+ [BRIZZ_SDK_VERSION]: getSDKVersion(),
1605
+ [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1592
1606
  };
1593
1607
  if (resolvedConfig.environment) {
1594
1608
  resourceAttributes["deployment.environment"] = resolvedConfig.environment;