Skip to content

Commit

Permalink
[Azure Monitor OpenTelemetry] Fix issues with SDK version not propaga…
Browse files Browse the repository at this point in the history
…ting correctly (Azure#27163)

### Packages impacted by this PR
@azure/monitor-opentelemetry
  • Loading branch information
hectorhdzg authored Sep 19, 2023
1 parent 327992e commit fb62e24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions sdk/monitor/monitor-opentelemetry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ 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,
} from "./types";

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;
Expand Down
4 changes: 0 additions & 4 deletions sdk/monitor/monitor-opentelemetry/src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
1 change: 1 addition & 0 deletions sdk/monitor/monitor-opentelemetry/src/types.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit fb62e24

Please sign in to comment.