Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a way to retrieve the OperationName from a ISpan #111

Open
paulomorgado opened this issue Oct 18, 2018 · 3 comments
Open

Comments

@paulomorgado
Copy link

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

@austinlparker
Copy link
Member

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

@austinlparker
Copy link
Member

For background, there was some discussion about this same issue in the Java lib - opentracing/opentracing-java#285

@paulomorgado
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants