set phoenix attributes on span creation (#52)
This commit is contained in:
parent
eecb238cff
commit
9446655797
|
@ -122,8 +122,10 @@ defmodule OpentelemetryPhoenix do
|
||||||
]
|
]
|
||||||
|
|
||||||
# start the span with a default name. Route name isn't known until router dispatch
|
# start the span with a default name. Route name isn't known until router dispatch
|
||||||
OpentelemetryTelemetry.start_telemetry_span(@tracer_id, "HTTP #{conn.method}", meta, %{kind: :server})
|
OpentelemetryTelemetry.start_telemetry_span(@tracer_id, "HTTP #{conn.method}", meta, %{
|
||||||
|> Span.set_attributes(attributes)
|
kind: :server,
|
||||||
|
attributes: attributes
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc false
|
@doc false
|
||||||
|
|
Loading…
Reference in New Issue