opentracing-csharp icon indicating copy to clipboard operation
opentracing-csharp copied to clipboard

Consider adding a way to retrieve the OperationName from a ISpan

Open paulomorgado opened this issue 5 years ago • 3 comments

If I have an ISpan instance, I can set it's operation name. But I can't retrieve it.

paulomorgado avatar Oct 18 '18 15:10 paulomorgado

The specification doesn't indicate having the operation name being a property that can be read, true. What is your proposed use case?

austinlparker avatar Oct 18 '18 16:10 austinlparker

For background, there was some discussion about this same issue in the Java lib - https://github.com/opentracing/opentracing-java/issues/285

austinlparker avatar Oct 18 '18 16:10 austinlparker

I find it strange that I can set the operation name on a span whenever I want to, but cannot read it. The same for tags, by the way.

If I were to design this API, I would have a read-only property for the operation name and no API to change it.

I was trying to feed the span to the logger and get the operation name from it but, no luck.

paulomorgado avatar Oct 18 '18 19:10 paulomorgado