-
Notifications
You must be signed in to change notification settings - Fork 154
opentelemetry_ecto - add possibility to setup additional attributes. #94
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
Conversation
instrumentation/opentelemetry_ecto/test/opentelemetry_ecto_test.exs
Outdated
Show resolved
Hide resolved
|
Isn't this task better suited for #85? The concern is this become a pattern for all instrumentation libraries. Not sure how it's the vision for that, specially after the Instrumentation Scope changes. Thoughts @tsloughter? |
|
@andrewhr that would assume they want the attributes to also be in baggage. |
|
@andrewhr as I understand baggage would be generic for the whole app not particular to a library context. for example, if I want to identify write and read replicas, I can specify different |
|
@tsloughter @bryannaegele any update on this? |
|
I think this is needed but I don't want to be the decided on a change like this to the Ecto integration. But I'll give an argument for it in principle: in other cases, like an HTTP server span, you can add attributes to the Span the instrumentation creates because the user is writing the code that is being wrapped in a span (so simply call the |
|
Sorry. I was on vacation when you were still working through those conversations. I think this is fine at this point? The functionality is required by the spec now. Did you have any specific objection to the implementation @tsloughter? |
|
Also, @fcevado you still need to sign the CLA. |
|
Looks ok to me. |
7adbc0e to
13e7acb
Compare
|
@bryannaegele it's signed 👍 |
13e7acb to
c84fa63
Compare
current implementation of opentelemetry_ecto doesn't allow to setup additional attributes to the span. this PR add this possibility by allowing an
:attributesoption on setup.