You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support adding process tags in OTEL via env variable (#2220)
* Support adding process tags in OTEL via env variable
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Install processor only when flag is used
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Increase coverage
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix name
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix review
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Copy file name to clipboardexpand all lines: cmd/agent/app/reporter/flags.go
+6-6
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ import (
28
28
const (
29
29
// Whether to use grpc or tchannel reporter.
30
30
reporterType="reporter.type"
31
-
// Agent tags
32
-
agentTagsDeprecated="jaeger.tags"
31
+
// AgentTagsDeprecated is a configuration property name for adding process tags to incoming spans.
32
+
AgentTagsDeprecated="jaeger.tags"
33
33
agentTags="agent.tags"
34
34
// GRPC is name of gRPC reporter.
35
35
GRPCType="grpc"
@@ -48,7 +48,7 @@ type Options struct {
48
48
funcAddFlags(flags*flag.FlagSet) {
49
49
flags.String(reporterType, string(GRPC), fmt.Sprintf("Reporter type to use e.g. %s", string(GRPC)))
50
50
if!setupcontext.IsAllInOne() {
51
-
flags.String(agentTagsDeprecated, "", "(deprecated) see --"+agentTags)
51
+
flags.String(AgentTagsDeprecated, "", "(deprecated) see --"+agentTags)
52
52
flags.String(agentTags, "", "One or more tags to be added to the Process tags of all spans passing through this agent. Ex: key1=value1,key2=${envVar:defaultValue}")
0 commit comments