Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Azure Monitor OpenTelemetry] Fix issues with SDK version not propagating correctly #27163

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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