Description
Type of issue
Missing information
Description
I was rather suprised to find that if you create an Activity
and set both the OperationName
(via the constructor) and DisplayName
properties, then it is the DisplayName
that ends up as the name
of the span exported by the OtlpExporter, and OperationName
is not present in the output at all.
Looking in to this further, I think this is intentional. The DisplayName
is to all intents and purposes the actual name of the span, whilst the OperationName
is presumably there for doing advanced filtering, enrichment, etc inside the process.
Could you get some clarity from the authors and add this usage info to the docs. At the moment they read more like both properties will appear, and that OperationName
is more likely to end up as the name
.
Page URL
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Diagnostics/Activity.xml
Document Version Independent Id
09fad89b-f334-4588-0adf-bdefda4ae08b
Platform Id
90a5639e-a7f2-4ed2-10b6-651df86945da