Skip to content

Commit 16dd4f4

Browse files
Configure for multi-tenant clusters (#18)
pass X-Scope-Orgid headers to make it work with multi-tenant tempo clusters. without this change, it fails to push data to tempo clusters that have multitenancy_enabled: true need x-scope-orgid headers, and tempo clusters with multitenancy_enabled: false will ignore x-scope-orgid headers. so set x-scope-orgid headers to make it work multitenancy_enabled: true clusters.
1 parent 95f69fd commit 16dd4f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/template/template.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ export const options = {
88
};
99

1010
const endpoint = __ENV.ENDPOINT || "otel-collector:4317"
11+
const orgid = __ENV.TEMPO_X_SCOPE_ORGID || "k6-test"
1112
const client = new tracing.Client({
1213
endpoint,
1314
exporter: tracing.EXPORTER_OTLP,
1415
insecure: true,
16+
headers: {
17+
"X-Scope-Orgid": orgid
18+
}
1519
});
1620

1721
const traceDefaults = {

0 commit comments

Comments
 (0)