-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Allow de-duplicating Span.Process, agent, and collector tags #1778
Comments
Aha, good catch! I'd vote for the second option (prevent agent from adding tag if it already exists), because I can't think of a scenario where agent would have a more accurate value for a tag than a client. P.S: This can also be marked "good first issue"! |
The counter argument is that you want the agent to enforce an official/authoritative value and prevent the client from being able to override it. Possibly we need a mechanism to enable the agent to know which action to take when a duplicate is found. |
So:
|
Sounds good as long as we believe all tags are to be treated the same. |
Marking this as "good first issue". I'll implement this in a couple of weeks if we don't get volunteers :) |
I can take this issue :D |
If something comes up @Pothulapati , I’d be happy to take it too :) |
@dm03514 we have plenty of good first issues. How about this one? jaegertracing/jaeger-operator#654 |
What is the problem with having duplicate tags? What is the business scenario where agent must override tags provided by the client? The original intention of agent tags was to provide additional dimensions that may not be known to the client, like which zone/cluster the code is running in. |
The usecase is really to ensure the client cannot override/spoof the values associated with those tags, in cases where they may be relied upon for subsequent security/post processing. |
Besides @objectiser's case, agents might be automatically added to pods (like, via the operator) and they have no way to know whether the tracer is already being configured with the same information on its own ( Having duplicate information is unnecessary noise and storage, and it's probably not what the user expects in most of the cases. |
I could swear we had this fixed already :-) Any volunteers for this one? |
I tried the |
Do you have an example of that? |
sure:
The jaeger-query traces showed
after some clicking in the ui, I also found
And all spans of a trace have the same number of testtag-labels. |
This is really, really odd. We should indeed work on de-duplicating the tags, but there has to be something else going on... |
@jpkrohling I can take this issue. |
Problem - what in Jaeger blocks you from solving the requirement?
When using
--jaeger-tags
in the Agent, and the same tags asJAEGER_TAGS
on a client such as the Java client, the tags are being duplicated:This is probably the relevant code:
jaeger/cmd/agent/app/reporter/grpc/reporter.go
Lines 87 to 91 in fb55050
Proposal - what do you suggest to solve the problem or improve the existing situation?
Either:
Any open questions to address
The text was updated successfully, but these errors were encountered: