Skip to content

Commit fb62e24

Browse files
authored
[Azure Monitor OpenTelemetry] Fix issues with SDK version not propagating correctly (Azure#27163)
### Packages impacted by this PR @azure/monitor-opentelemetry
1 parent 327992e commit fb62e24

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sdk/monitor/monitor-opentelemetry/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ import { Logger as InternalLogger } from "./shared/logging";
1010
import { AzureMonitorOpenTelemetryOptions } from "./shared/types";
1111
import { LogHandler } from "./logs";
1212
import {
13+
AZURE_MONITOR_OPENTELEMETRY_VERSION,
1314
AZURE_MONITOR_STATSBEAT_FEATURES,
1415
StatsbeatFeature,
1516
StatsbeatInstrumentation,
1617
} from "./types";
1718

1819
export { AzureMonitorOpenTelemetryOptions, InstrumentationOptions } from "./shared/types";
1920

21+
process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION;
22+
2023
let metricHandler: MetricHandler;
2124
let traceHandler: TraceHandler;
2225
let logHandler: LogHandler;

sdk/monitor/monitor-opentelemetry/src/shared/types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { AzureMonitorExporterOptions } from "@azure/monitor-opentelemetry-export
55
import { InstrumentationConfig } from "@opentelemetry/instrumentation";
66
import { Resource } from "@opentelemetry/resources";
77

8-
export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.0.0-beta.3";
9-
export const DEFAULT_ROLE_NAME = "Web";
10-
process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION;
11-
128
/**
139
* Azure Monitor OpenTelemetry Options
1410
*/

sdk/monitor/monitor-opentelemetry/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4+
export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.0.0-beta.4";
45
export const AZURE_MONITOR_STATSBEAT_FEATURES = "AZURE_MONITOR_STATSBEAT_FEATURES";
56

67
export enum StatsbeatFeature {

0 commit comments

Comments
 (0)