lightstep / lightstep-tracer-go

The Lightstep distributed tracing library for Go
https://lightstep.com
MIT License
98 stars 54 forks source link

Expose record span in the Tracer interface #221

Closed drolando closed 4 years ago

drolando commented 4 years ago

I want to be able to emit a custom made span. RecordSpan would allow me to do that easily, however it's not part of the Tracer interface so I can't call it from my code.

iredelmeier commented 4 years ago

Thanks for the PR!

Do you mind providing more context on what you're aiming to achieve with the custom span? It may be achievable through either existing or new StartSpanOptions and/or FinishOptions.

In particular, I want to make sure that your use case is supported in OpenTelemetry!

chadbrad commented 4 years ago

Doing some housekeeping, closing this, as it's a bit dated. @drolando Please feel free to reach out with more information.