-
Notifications
You must be signed in to change notification settings - Fork 8
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
rework tags #25
Comments
Right now, Markus supports something like this:
That format for tags is weird if we think of tags as always having a key and a value. Datadog doesn't require that, though. The datadog backend has restrictions on keys and values:
First, we should fix the Markus docs regarding tags to make those restrictions clearer. After that, seems prudent to clean up tags somewhere. Maybe Markus should clean up tags before sending them to backends? Then all backends get the same tags. Maybe the backends themselves should clean up tags if they need to? Then we don't clean up tags that don't need cleaning up. Maybe we do a bit of both? Maybe we do a utility function that cleans up tags and takes either a list or a dict and returns a list of tags? |
I decided not to do anything backend specific or to add automatic tag generation to the People can use this as they so desire. If they have other requirements, they can do that (hashing values is an interesting one). Seems like the most flexible and least intrusive first step. We can adjust as we go along and after people have used it. |
The Datadog and logging backends support tags, but the API for doing tags is a little weird and there's nothing that sanitizes tag keys and values.
This issue covers rethinking that a bit.
The text was updated successfully, but these errors were encountered: