Save and apply tracing settings (superadmin, configured step-up)
const url = 'https://example.com/v1/system/tracing';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"endpoint":"example","genai_compat":true,"insecure":true,"protocol":"grpc","sample_ratio":1,"service_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/system/tracing \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "endpoint": "example", "genai_compat": true, "insecure": true, "protocol": "grpc", "sample_ratio": 1, "service_name": "example" }'Saves tracing choices in the deployment settings and applies them on the running node without restarting sessions. Requires system administration and configured step-up. Existing environment inputs override saved choices.
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ”object
Collector host or HTTP(S) URL without credentials, query or fragment.
Responses
Section titled “ Responses ”OK
object
object
Collector host or HTTP(S) URL without credentials, query or fragment.
Names of environment overrides; never their credential values.
object
Collector host or HTTP(S) URL without credentials, query or fragment.
Example
{ "effective": { "protocol": "grpc" }, "settings": { "protocol": "grpc" }}Bad request
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Unauthenticated
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Forbidden
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Not found
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Conflict / setup required
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Rate limited
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Tracing settings or collector configuration unavailable
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}