Skip to content

Commit

Permalink
Added check that Open Telemetry Bridge is enable and only then displa… (
Browse files Browse the repository at this point in the history
#2356)

* Added check that Open Telemetry Bridge is enable and only then display warning

* Fixed logic how message is diplayed only if bridge is enabled

---------

Co-authored-by: Martijn Laarman <[email protected]>
  • Loading branch information
zviedris and Mpdreamz authored May 23, 2024
1 parent 54a7105 commit ff221d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Elastic.Apm/AgentComponents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ private void ServerInfoCallback(bool success, IApmServerInfo serverInfo)
#if !NET5_0_OR_GREATER
return;
#else
if (!Configuration.OpenTelemetryBridgeEnabled) return;

if (success)
{
if (serverInfo.Version >= new ElasticVersion(7, 16, 0, string.Empty))
Expand Down

0 comments on commit ff221d6

Please sign in to comment.