fix(datadog-trace-utils): [SVLS-7218] don't hardcode span type on all spans to serverless#1149
Conversation
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1149 +/- ##
==========================================
+ Coverage 71.27% 71.31% +0.03%
==========================================
Files 345 345
Lines 53154 53148 -6
==========================================
+ Hits 37887 37903 +16
+ Misses 15267 15245 -22
🚀 New features to boost your workflow:
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Tests failed on this commit 641cf12: What to do next?
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
Removes hardcoding of span type on all spans to Serverless.
Motivation
https://datadoghq.atlassian.net/browse/SVLS-7218
While this may have been appropriate at the outset of the project where root spans had to manually be created for Azure Functions, it is no longer necessary due to the automatic instrumentation of http triggers and continuing work to auto instrument other types of triggers. There shouldn’t be any change where the root span is already of type
serverless.Additional Notes
How to test the change?
Deployed to Azure Functions and confirmed that span types set by tracer are not overridden.
Current:
Following this change: