From e5f3a29323e84ffddb7c23a7b3533b737071717a Mon Sep 17 00:00:00 2001 From: davidvader Date: Wed, 11 Sep 2024 12:20:37 -0500 Subject: [PATCH] chore: cleanup --- tracing/config.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tracing/config.go b/tracing/config.go index 72b8fa7ff..e0ca90169 100644 --- a/tracing/config.go +++ b/tracing/config.go @@ -57,16 +57,14 @@ func FromCLIContext(c *cli.Context) (*Client, error) { return s } - // static span attributes + // span attributes cfg.SpanAttributes = keyValueSliceToMap(c.StringSlice("tracing.span.attributes"), identityFn) - // static tracestate attributes + // tracestate attributes cfg.TraceStateAttributes = keyValueSliceToMap(c.StringSlice("tracing.tracestate.attributes"), identityFn) - // static resource attributes + // merge static resource attributes with those fetched from the environment using os.Getenv cfg.ResourceAttributes = keyValueSliceToMap(c.StringSlice("tracing.resource.attributes"), identityFn) - - // merge static resource attributes with those fetched from the environment m := keyValueSliceToMap(c.StringSlice("tracing.resource.env_attributes"), os.Getenv) maps.Copy(cfg.ResourceAttributes, m)