Skip to content

Conversation

@tippmar-nr
Copy link
Member

@tippmar-nr tippmar-nr commented Nov 24, 2025

  • Adds supportability metrics for hybrid agent:
    • Supportability/Tracing/DotNet/OpenTelemetryBridge/{Enabled|Disabled} to indicate whether the tracing feature of the Open Telemetry bridge is enabled as per agent spec
    • Supportability/DotNet/OpenTelemetryBridge/{Enabled|Disabled} to indicate state of global otel bridge configuration
  • Renames the DotNet metric names constant that uses goofy capitalization (DotNET) to DotNETObsolete as well as renaming SupportabilityDotnetPs which used inconsistent casing (Dotnet) to SupportabilityDotnetPsObsolete. Updates existing metrics as needed to ensure no names were changed and introduces a new DotNet and SupportabilityDotNetPs metric names constants that uses a typical camel case capitalization.
  • Adds a new configuration OpenTelemetryBridgeTracingEnabled to control whether the tracing (ActivityBridge) feature is enabled. This new configuration defaults to true for now. NOTE: This change does not alter the existing appSettings based 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.
  • Updates AgentManager to use the global configuration OpenTelemetryBridgeEnabled when determining whether to start the otel ActivityBridge service and updates ActivityBridge.Start() to check OpenTelemetryBridgeTracingEnabled to determine whether it should start.
  • Updates unit tests as needed.

@tippmar-nr tippmar-nr requested a review from a team as a code owner November 24, 2025 17:27
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.33%. Comparing base (e2a8109) to head (49a8723).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3327      +/-   ##
==========================================
- Coverage   82.33%   82.33%   -0.01%     
==========================================
  Files         495      495              
  Lines       32043    32059      +16     
  Branches     3716     3719       +3     
==========================================
+ Hits        26383    26396      +13     
- Misses       4789     4792       +3     
  Partials      871      871              
Flag Coverage Δ
Agent 83.56% <100.00%> (-0.01%) ⬇️
Profiler 70.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...elic/Agent/Core/AgentHealth/AgentHealthReporter.cs 90.98% <100.00%> (+0.10%) ⬆️
...c/Agent/Core/Configuration/DefaultConfiguration.cs 89.55% <100.00%> (+<0.01%) ⬆️
.../Agent/Core/Configuration/ReportedConfiguration.cs 95.34% <100.00%> (+0.01%) ⬆️
...c/Agent/NewRelic/Agent/Core/Metrics/MetricNames.cs 93.08% <100.00%> (+0.09%) ⬆️
...c/Agent/Core/OpenTelemetryBridge/ActivityBridge.cs 77.85% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants