diff --git a/sdk/monitor/monitor-opentelemetry/src/index.ts b/sdk/monitor/monitor-opentelemetry/src/index.ts index 10fb9294b7ef..5f409ec9e640 100644 --- a/sdk/monitor/monitor-opentelemetry/src/index.ts +++ b/sdk/monitor/monitor-opentelemetry/src/index.ts @@ -10,6 +10,7 @@ import { Logger as InternalLogger } from "./shared/logging"; import { AzureMonitorOpenTelemetryOptions } from "./shared/types"; import { LogHandler } from "./logs"; import { + AZURE_MONITOR_OPENTELEMETRY_VERSION, AZURE_MONITOR_STATSBEAT_FEATURES, StatsbeatFeature, StatsbeatInstrumentation, @@ -17,6 +18,8 @@ import { export { AzureMonitorOpenTelemetryOptions, InstrumentationOptions } from "./shared/types"; +process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION; + let metricHandler: MetricHandler; let traceHandler: TraceHandler; let logHandler: LogHandler; diff --git a/sdk/monitor/monitor-opentelemetry/src/shared/types.ts b/sdk/monitor/monitor-opentelemetry/src/shared/types.ts index ebb94e94d796..049a891ba6d1 100644 --- a/sdk/monitor/monitor-opentelemetry/src/shared/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/shared/types.ts @@ -5,10 +5,6 @@ import { AzureMonitorExporterOptions } from "@azure/monitor-opentelemetry-export import { InstrumentationConfig } from "@opentelemetry/instrumentation"; import { Resource } from "@opentelemetry/resources"; -export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.0.0-beta.3"; -export const DEFAULT_ROLE_NAME = "Web"; -process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION; - /** * Azure Monitor OpenTelemetry Options */ diff --git a/sdk/monitor/monitor-opentelemetry/src/types.ts b/sdk/monitor/monitor-opentelemetry/src/types.ts index 0e3cacb29ff6..8833e2a0356c 100644 --- a/sdk/monitor/monitor-opentelemetry/src/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/types.ts @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.0.0-beta.4"; export const AZURE_MONITOR_STATSBEAT_FEATURES = "AZURE_MONITOR_STATSBEAT_FEATURES"; export enum StatsbeatFeature {