Remove OtlpExporter resource modification code #5927
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Good for taking. Extra help will be provided by maintainers
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol
Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
Milestone
We have some code in OtlpExporter which will add service name if it isn't found on the resource:
opentelemetry-dotnet/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ResourceExtensions.cs
Lines 23 to 32 in 9f41ead
opentelemetry-dotnet/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/Serializer/ProtobufOtlpResourceSerializer.cs
Line 59 in 9f41ead
Discussed with @alanwest and neither of us feel this should be done. The OtlpExporter should just respect what the SDK resource has.
What needs to be done...
The text was updated successfully, but these errors were encountered: