Telemetrieziel erstellen
POST/v1/organizations/telemetry_destinations
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headersRegistriert ein OpenTelemetry-Ziel für die Organisation.
Das Ziel startet im Status enabled. Eine Organisation kann höchstens 10 Ziele haben, einschließlich deaktivierter.
Im OpenTelemetry-Exportleitfaden erfährst du mehr über das Hinzufügen eines Ziels.
Parameters
Returns
Telemetrieziel erstellen
using System;
using Anthropic.Models.Beta.Organization.TelemetryDestinations;
TelemetryDestinationCreateParams parameters = new()
{
EndpointUrl = "x",
Workspaces = new BetaTelemetryDestinationWorkspacesAllParams(),
};
var betaTelemetryDestination = await client.Beta.Organization.TelemetryDestinations.Create(parameters);
Console.WriteLine(betaTelemetryDestination);Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"delivery_health": {
"last_error": "last_error",
"last_error_at": "2019-12-27T18:11:19.117Z",
"last_success_at": "2019-12-27T18:11:19.117Z"
},
"display_name": "display_name",
"endpoint_url": "endpoint_url",
"header_names": [
"string"
],
"state": {
"type": "enabled"
},
"traces": {
"content_mode": "metadata_only",
"enabled": true,
"endpoint_url": "endpoint_url",
"max_content_bytes": 0
},
"type": "telemetry_destination",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspaces": {
"type": "all"
}
}Returns Examples
Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"delivery_health": {
"last_error": "last_error",
"last_error_at": "2019-12-27T18:11:19.117Z",
"last_success_at": "2019-12-27T18:11:19.117Z"
},
"display_name": "display_name",
"endpoint_url": "endpoint_url",
"header_names": [
"string"
],
"state": {
"type": "enabled"
},
"traces": {
"content_mode": "metadata_only",
"enabled": true,
"endpoint_url": "endpoint_url",
"max_content_bytes": 0
},
"type": "telemetry_destination",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspaces": {
"type": "all"
}
}