Skip to content

Commit

Permalink
update Telemetry.Agent to aws-opentelemetry-collector (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee authored Nov 8, 2024
1 parent d4f8486 commit 2e12121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (n *AttributesNormalizer) normalizeTelemetryAttributes(attributes, resource
}
attributes.PutStr(common.MetricAttributeTelemetrySDK, fmt.Sprintf("%s,%s,%s,%s", sdkName, sdkVersion, sdkLang, mode))
// NOTE: In CWAgent, `opentelemetry-collector` is replaced by `CWAgent`
attributes.PutStr(common.MetricAttributeTelemetryAgent, fmt.Sprintf("opentelemetry-collector/%s", GetCollectorVersion()))
attributes.PutStr(common.MetricAttributeTelemetryAgent, fmt.Sprintf("aws-opentelemetry-collector/%s", GetCollectorVersion()))

var telemetrySource string
if val, ok := attributes.Get(attr.AWSSpanKind); ok {
Expand Down

0 comments on commit 2e12121

Please sign in to comment.