File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,15 @@ defmodule Sentry.Client do
271271
272272 @ spec render_transaction ( % Transaction { } ) :: map ( )
273273 def render_transaction ( % Transaction { } = transaction ) do
274- Transaction . to_map ( transaction )
274+ transaction
275+ |> Transaction . to_map ( )
276+ |> Map . merge ( % {
277+ platform: "elixir" ,
278+ sdk: % {
279+ name: "sentry.elixir" ,
280+ version: "10.7.1"
281+ }
282+ } )
275283 end
276284
277285 defp render_exception ( % Interfaces.Exception { } = exception ) do
Original file line number Diff line number Diff line change @@ -71,11 +71,6 @@ defmodule Sentry.Opentelemetry.SpanProcessor do
7171 origin: root_span . origin
7272 }
7373 } ,
74- platform: "elixir" ,
75- sdk: % {
76- name: "sentry.elixir" ,
77- version: "10.7.1"
78- } ,
7974 data: % {
8075 "db.system" => attributes [ :"db.system" ] ,
8176 "db.name" => attributes [ :"db.name" ] ,
@@ -110,11 +105,6 @@ defmodule Sentry.Opentelemetry.SpanProcessor do
110105 contexts: % {
111106 trace: trace
112107 } ,
113- platform: "elixir" ,
114- sdk: % {
115- name: "sentry.elixir" ,
116- version: "10.7.1"
117- } ,
118108 request: % {
119109 url: attributes [ :"http.target" ] ,
120110 method: attributes [ :"http.method" ] ,
@@ -145,7 +135,6 @@ defmodule Sentry.Opentelemetry.SpanProcessor do
145135 child_spans
146136 ) do
147137 % Sentry.Transaction {
148- event_id: Sentry.UUID . uuid4_hex ( ) ,
149138 start_timestamp: root_span . start_time ,
150139 timestamp: root_span . end_time ,
151140 transaction: attributes [ :"http.target" ] ,
@@ -159,11 +148,6 @@ defmodule Sentry.Opentelemetry.SpanProcessor do
159148 parent_span_id: root_span . parent_span_id
160149 }
161150 } ,
162- platform: "elixir" ,
163- sdk: % {
164- name: "sentry.elixir" ,
165- version: "10.7.1"
166- } ,
167151 request: % {
168152 url: attributes [ :"http.url" ] ,
169153 method: attributes [ :"http.method" ] ,
You can’t perform that action at this time.
0 commit comments