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

add example for use of traces #11

Open
tecknicaltom opened this issue Mar 12, 2025 · 0 comments
Open

add example for use of traces #11

tecknicaltom opened this issue Mar 12, 2025 · 0 comments

Comments

@tecknicaltom
Copy link

It would be beneficial to add an example of how the traces feature is expected to be used.

I'm currently attempting to add tracing with otel to a codebase that is configured with slogdriver. I understand that slogdriver is attempting to be library agnostic with tracing data, but it looks like it's currently written with the intent that every place in code that creates a trace or adds a new span would have to interact with slogdriver to add a slogdriver.Trace to the context. This doesn't seem ideal. Would it instead be useful to be able to provide slogdriver.NewHandler() a function in the config that encapsulates retrieving the trace context from the current context?

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

1 participant