// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace Microsoft.Teams.Apps.Diagnostics; /// /// Names of the and /// emitted by Microsoft.Teams.Apps. /// /// /// Consumers register these names with their OpenTelemetry tracer and meter providers so that the /// Teams-application-level spans (handler) flow to configured exporters. Lower-level layers /// (Microsoft.Teams.Core) publish their own source/meter; register them all to capture the full /// bot pipeline. /// /// builder.Services.AddOpenTelemetry() /// .WithTracing(t => t /// .AddSource(CoreTelemetryNames.ActivitySourceName) /// .AddSource(TeamsBotApplicationTelemetry.ActivitySourceName)) /// .WithMetrics(m => m /// .AddMeter(CoreTelemetryNames.MeterName) /// .AddMeter(TeamsBotApplicationTelemetry.MeterName)); /// /// public static class TeamsBotApplicationTelemetry { /// /// Name of the that emits Apps-level spans. /// public const string ActivitySourceName = "Microsoft.Teams.Apps"; /// /// Name of the that emits Apps-level metrics. /// public const string MeterName = "Microsoft.Teams.Apps"; }