mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:31:48 +00:00
schema: do not use 'sourcegraph' in urlTemplate example, add doc note about urlTemplate (#41490)
This commit is contained in:
parent
20b03825d4
commit
7a78282a5a
@ -42,11 +42,15 @@ A link to the [exported trace](#tracing-backends) should be show up in the searc
|
||||
|
||||

|
||||
|
||||
Note that getting a trace URL requires `urlTemplate` to be configured.
|
||||
|
||||
### Trace a GraphQL request
|
||||
|
||||
To receive a traceID on a GraphQL request, include the header `X-Sourcegraph-Should-Trace: true` with the request.
|
||||
The response headers of the response will now include an `x-trace` entry, which will have a URL the [exported trace](#tracing-backends).
|
||||
|
||||
Note that getting a trace URL requires `urlTemplate` to be configured.
|
||||
|
||||
## Tracing backends
|
||||
|
||||
Tracing backends can be configured for Sourcegraph to export traces to.
|
||||
|
||||
@ -1239,7 +1239,7 @@
|
||||
"examples": [
|
||||
"https://ui.honeycomb.io/$ORG/environments/$DATASET/trace?trace_id={{ .TraceID }}",
|
||||
"https://console.cloud.google.com/traces/list?tid={{ .TraceID }}&project=$PROJECT",
|
||||
"https://sourcegraph.grafana.net/explore?orgId=1&left=[\"now-1h\",\"now\",\"grafanacloud-sourcegraph-traces\",{\"query\":\"{{ .TraceID }}\",\"queryType\":\"traceId\"}]",
|
||||
"https://$ORGANIZATION.grafana.net/explore?orgId=1&left=[\"now-1h\",\"now\",\"$DATASOURCE\",{\"query\":\"{{ .TraceID }}\",\"queryType\":\"traceId\"}]",
|
||||
"{{ .ExternalURL }}/-/debug/jaeger/trace/{{ .TraceID }}"
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user