Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

db.instance tag for elasticsearch to enable as inferred service #33

Closed
hackerrdave opened this issue Oct 3, 2019 · 2 comments
Closed

Comments

@hackerrdave
Copy link
Contributor

hackerrdave commented Oct 3, 2019

The elasticsearch tracing library doesn't add the span tag db.instance, so elasticsearch is never picked up as an inferred service in the service map. Is there a plan to add this?

Thanks!

@rmfitzpatrick
Copy link
Contributor

rmfitzpatrick commented Oct 3, 2019

@hackerrdave thanks for opening this. We do plan on adding this to the Elasticsearch instrumentation. This would be part of a larger planned audit for inferred service compatibility and upstream instrumentations in the near future.

Depending on your use case, we think that the cluster name would be the preferred db.instance value as there could be some cardinality concerns with using index names. Perhaps being able to configure which to use would be ideal.

In the meantime there isn't a* span tags parameter like with some other instrumentations, so no immediate workaround seems available. Of course opening a PR for the instrumentation is always an option if your schedule allows it 😄

@hackerrdave
Copy link
Contributor Author

great thanks for the update! Agreed on the db.instance value being the cluster name rather than the index names. I may be able to try to work this in, just wanted to confirm that this is something that we wanted to do, and wasn't already being worked on. It does seem to be a bit of a larger refactor than the other recent changes to pymysql since that integration was already refactored in a way to have access to span tags, but I'll see what I can do!

@owais owais closed this as completed Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants