From 14cae707c5e433f84c1ba68846ca84ae25b08b07 Mon Sep 17 00:00:00 2001 From: joegoldman2 <147369450+joegoldman@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:35:48 +0000 Subject: [PATCH 1/2] [pkg/translator/azure] Map application-defined properties --- pkg/translator/azure/resources_to_traces.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/translator/azure/resources_to_traces.go b/pkg/translator/azure/resources_to_traces.go index b0e401a832f4..6a66dd1ad5e3 100644 --- a/pkg/translator/azure/resources_to_traces.go +++ b/pkg/translator/azure/resources_to_traces.go @@ -146,6 +146,12 @@ func (r TracesUnmarshaler) UnmarshalTraces(buf []byte) (ptrace.Traces, error) { span.Attributes().PutStr("http.scheme", scheme) span.Attributes().PutStr("http.method", azureTrace.Properties["HTTP Method"]) + for key, value := range azureTrace.Properties { + if key != "HTTP Method" { // HTTP Method is already mapped to http.method + span.Attributes().PutStr(key, value) + } + } + span.SetKind(ptrace.SpanKindServer) span.SetName(azureTrace.Name) span.SetStartTimestamp(nanos) From 4f7b6243f1af3748a81ac15f2e600c22ad124a4b Mon Sep 17 00:00:00 2001 From: joegoldman2 <147369450+joegoldman@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:13:56 +0000 Subject: [PATCH 2/2] Add changelog --- .chloggen/azuretranslator-app-props.yaml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .chloggen/azuretranslator-app-props.yaml diff --git a/.chloggen/azuretranslator-app-props.yaml b/.chloggen/azuretranslator-app-props.yaml new file mode 100644 index 000000000000..3b0d3b1beba2 --- /dev/null +++ b/.chloggen/azuretranslator-app-props.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: azuretranslator + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Map application-defined properties for trace signals + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [35402] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user]