Telemetry Destinations
Create a Telemetry Destination
client.Beta.Organization.TelemetryDestinations.New(ctx, params) (*BetaTelemetryDestination, error)Register an OpenTelemetry destination for the organization.
List Telemetry Destinations
client.Beta.Organization.TelemetryDestinations.List(ctx, params) (*PageCursor[BetaTelemetryDestination], error)List the organization's destinations, newest first, optionally only those that cover given workspaces.
Retrieve a Telemetry Destination
client.Beta.Organization.TelemetryDestinations.Get(ctx, destinationID, query) (*BetaTelemetryDestination, error)Read a destination's configuration, state, and most recent delivery results.
Update a Telemetry Destination
client.Beta.Organization.TelemetryDestinations.Update(ctx, destinationID, params) (*BetaTelemetryDestination, error)Change a telemetry destination's settings, its state, or which workspaces it covers.
Delete a Telemetry Destination
client.Beta.Organization.TelemetryDestinations.Delete(ctx, destinationID, body) (*BetaDeletedTelemetryDestination, error)Delete a destination and its workspace list.
Test a Telemetry Destination
client.Beta.Organization.TelemetryDestinations.Test(ctx, destinationID, body) (*BetaTelemetryDestinationTestResponse, error)Send one test span, named anthropic.test, to the destination with its registered headers, once and without retries, and report the destination's answer. The response is 200 whether or not the destination answered with a 2xx status: its result has the type success, or the type failure and the reason in error. The destination's configuration, state and delivery_health do not change. A disabled destination can be tested too. Wait 10 seconds between tests of one destination; a request that comes sooner may be answered with status 429.
Models
Telemetry DestinationsWorkspaces
List Telemetry Destination Workspaces
client.Beta.Organization.TelemetryDestinations.Workspaces.List(ctx, destinationID, params) (*PageCursor[BetaTelemetryDestinationWorkspace], error)List the workspaces on a destination's workspace list, newest entry first.
Add a Telemetry Destination Workspace
client.Beta.Organization.TelemetryDestinations.Workspaces.Add(ctx, workspaceID, params) (*BetaTelemetryDestinationWorkspace, error)Add one workspace to a destination's workspace list.
Remove a Telemetry Destination Workspace
client.Beta.Organization.TelemetryDestinations.Workspaces.Remove(ctx, workspaceID, params) (*BetaDeletedTelemetryDestinationWorkspace, error)Remove one workspace from a destination's workspace list.