Skip to content

Commit

Permalink
Code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Mar 5, 2024
1 parent d648b02 commit aa7d236
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/OpenTelemetry/Metrics/MeterProviderSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,12 @@ private void ApplySpecificationConfigurationKeys(IConfiguration configuration)

OpenTelemetrySdkEventSource.Log.MeterProviderSdkEvent($"Exemplar filter set to '{exemplarFilter}' from configuration.");
}
#else
if (configuration.TryGetStringValue(ExemplarFilterConfigKey, out var configValue))
{
OpenTelemetrySdkEventSource.Log.MeterProviderSdkEvent(
$"Exemplar filter configuration value '{configValue}' has been ignored because exemplars are an experimental feature not available in stable builds.");
}
#endif
}
}

0 comments on commit aa7d236

Please sign in to comment.