Set the OpenTelemetry export
curl --request PUT \
--url https://api.compute.anonalabs.com/v1/otel-export \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"endpoint": "<string>",
"headers": {},
"enabled": true
}
'import requests
url = "https://api.compute.anonalabs.com/v1/otel-export"
payload = {
"endpoint": "<string>",
"headers": {},
"enabled": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({endpoint: '<string>', headers: {}, enabled: true})
};
fetch('https://api.compute.anonalabs.com/v1/otel-export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"export": {
"endpoint": "<string>",
"headerNames": [
"<string>"
],
"enabled": true,
"updatedAt": "2023-11-07T05:31:56Z",
"lastExportAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"lastErrorAt": "2023-11-07T05:31:56Z"
},
"intervalSeconds": 123,
"metrics": [
"<string>"
]
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Webhooks and telemetry
Set the OpenTelemetry export
The OTLP/HTTP base URL (protobuf to <endpoint>/v1/metrics and
/v1/traces), headers (encrypted at rest, never returned; omit to keep
the stored ones) and whether it is enabled.
PUT
/
v1
/
otel-export
Set the OpenTelemetry export
curl --request PUT \
--url https://api.compute.anonalabs.com/v1/otel-export \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"endpoint": "<string>",
"headers": {},
"enabled": true
}
'import requests
url = "https://api.compute.anonalabs.com/v1/otel-export"
payload = {
"endpoint": "<string>",
"headers": {},
"enabled": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({endpoint: '<string>', headers: {}, enabled: true})
};
fetch('https://api.compute.anonalabs.com/v1/otel-export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"export": {
"endpoint": "<string>",
"headerNames": [
"<string>"
],
"enabled": true,
"updatedAt": "2023-11-07T05:31:56Z",
"lastExportAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"lastErrorAt": "2023-11-07T05:31:56Z"
},
"intervalSeconds": 123,
"metrics": [
"<string>"
]
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
An Anona Compute API key (e2b_ followed by lowercase hex).