cURL
curl --request PUT \
--url https://my.orq.ai/v3/telemetry-destinations/{destination_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"destination": {
"display_name": "<string>",
"provider": "<string>",
"endpoint_url": "<string>",
"request_headers": {},
"settings": {},
"project_ids": [
"<string>"
],
"enabled": true
}
}
'import { Orq } from '@orq-ai/node';
const orq = new Orq({ apiKey: process.env.ORQ_MANAGEMENT_KEY });
// Updates replace the whole destination. Send every header key to keep, with an empty value to retain its stored secret.
const result = await orq.telemetryDestinations.update({ destinationId: '01HZXW2K7Y8Q9M0N1P2R3S4T5V', destination: { displayName: 'Production', provider: 'custom', endpointUrl: 'https://otel.example.com/v1/traces', requestHeaders: { authorization: '' }, contentMode: 'TELEMETRY_CONTENT_MODE_METADATA_ONLY', projectScope: 'TELEMETRY_PROJECT_SCOPE_ALL', enabled: true } });
import requests
url = "https://my.orq.ai/v3/telemetry-destinations/{destination_id}"
payload = { "destination": {
"display_name": "<string>",
"provider": "<string>",
"endpoint_url": "<string>",
"request_headers": {},
"settings": {},
"project_ids": ["<string>"],
"enabled": True
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"destination": {
"id": "<string>",
"display_name": "<string>",
"provider": "<string>",
"endpoint_url": "<string>",
"request_headers": {},
"settings": {},
"content_mode": "TELEMETRY_CONTENT_MODE_METADATA_ONLY",
"project_scope": "TELEMETRY_PROJECT_SCOPE_ALL",
"project_ids": [
"<string>"
],
"enabled": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"failure_count": 123,
"last_error": "<string>",
"last_status_code": 123,
"last_attempt_at": "2023-11-07T05:31:56Z",
"disabled_reason": "<string>"
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Telemetry Destinations
Update an OpenTelemetry destination
Replace an OpenTelemetry destination with a Management Key. Send every request header to keep, with an empty value to retain its stored secret.
PUT
/
v3
/
telemetry-destinations
/
{destination_id}
cURL
curl --request PUT \
--url https://my.orq.ai/v3/telemetry-destinations/{destination_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"destination": {
"display_name": "<string>",
"provider": "<string>",
"endpoint_url": "<string>",
"request_headers": {},
"settings": {},
"project_ids": [
"<string>"
],
"enabled": true
}
}
'import { Orq } from '@orq-ai/node';
const orq = new Orq({ apiKey: process.env.ORQ_MANAGEMENT_KEY });
// Updates replace the whole destination. Send every header key to keep, with an empty value to retain its stored secret.
const result = await orq.telemetryDestinations.update({ destinationId: '01HZXW2K7Y8Q9M0N1P2R3S4T5V', destination: { displayName: 'Production', provider: 'custom', endpointUrl: 'https://otel.example.com/v1/traces', requestHeaders: { authorization: '' }, contentMode: 'TELEMETRY_CONTENT_MODE_METADATA_ONLY', projectScope: 'TELEMETRY_PROJECT_SCOPE_ALL', enabled: true } });
import requests
url = "https://my.orq.ai/v3/telemetry-destinations/{destination_id}"
payload = { "destination": {
"display_name": "<string>",
"provider": "<string>",
"endpoint_url": "<string>",
"request_headers": {},
"settings": {},
"project_ids": ["<string>"],
"enabled": True
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"destination": {
"id": "<string>",
"display_name": "<string>",
"provider": "<string>",
"endpoint_url": "<string>",
"request_headers": {},
"settings": {},
"content_mode": "TELEMETRY_CONTENT_MODE_METADATA_ONLY",
"project_scope": "TELEMETRY_PROJECT_SCOPE_ALL",
"project_ids": [
"<string>"
],
"enabled": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"failure_count": 123,
"last_error": "<string>",
"last_status_code": 123,
"last_attempt_at": "2023-11-07T05:31:56Z",
"disabled_reason": "<string>"
}
}{
"message": "<string>",
"code": 123,
"details": [
"<unknown>"
]
}Related guide: OpenTelemetry export guide. See the OpenTelemetry export guide for a walkthrough with examples.
Was this page helpful?