Image Render: Propagate traces in HTTP mode (#100559)

* Rendering: Propagate traces in HTTP mode

* update ini file

* update docs

* update doc

* fix imports

* fix go files

* fix CI

* update ini config

* remove servicename

---------

Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
Lucy Chen
2025-03-06 12:02:00 -05:00
committed by GitHub
co-authored by AgnesToulet nmarrs
parent 3247105d6a
commit 5996e102af
5 changed files with 28 additions and 2 deletions
+3 -1
View File
@@ -14,6 +14,8 @@ import (
"os"
"strconv"
"time"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)
var netTransport = &http.Transport{
@@ -25,7 +27,7 @@ var netTransport = &http.Transport{
}
var netClient = &http.Client{
Transport: netTransport,
Transport: otelhttp.NewTransport(netTransport),
}
const authTokenHeader = "X-Auth-Token" //#nosec G101 -- This is a false positive