chore: Supportability metrics for hybrid agent tracing #3327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Supportability/Tracing/DotNet/OpenTelemetryBridge/{Enabled|Disabled}to indicate whether the tracing feature of the Open Telemetry bridge is enabled as per agent specSupportability/DotNet/OpenTelemetryBridge/{Enabled|Disabled}to indicate state of global otel bridge configurationDotNetmetric names constant that uses goofy capitalization (DotNET) toDotNETObsoleteas well as renamingSupportabilityDotnetPswhich used inconsistent casing (Dotnet) toSupportabilityDotnetPsObsolete. Updates existing metrics as needed to ensure no names were changed and introduces a newDotNetandSupportabilityDotNetPsmetric names constants that uses a typical camel case capitalization.OpenTelemetryBridgeTracingEnabledto control whether the tracing (ActivityBridge) feature is enabled. This new configuration defaults totruefor now. NOTE: This change does not alter the existingappSettingsbased configuration or use the new environment variable names defined in the tracing spec; those changes will come after the metric bridge service implementation is completed.AgentManagerto use the global configurationOpenTelemetryBridgeEnabledwhen determining whether to start the otelActivityBridgeservice and updatesActivityBridge.Start()to checkOpenTelemetryBridgeTracingEnabledto determine whether it should start.