Class TelemetryDestinationCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class TelemetryDestinationCreateParams implements Params
Register an OpenTelemetry destination for the organization.
The destination starts in state
enabled. An organization can have at most 10 destinations, including disabled ones.See the OpenTelemetry export guide to learn more about adding a destination.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTelemetryDestinationCreateParams.BuilderA builder for TelemetryDestinationCreateParams.
public final classTelemetryDestinationCreateParams.BodyThe settings of a new telemetry destination for the organization.
public final classTelemetryDestinationCreateParams.DestinationHeadersRequest headers that the API sends with every delivery, typically your collector's authentication header (for example
authorization).The API never returns the values. Reads show only
header_names.At most 20 headers. Names are at most 128 characters. Two names can't differ only in case. Values are printable ASCII, at most 4,096 characters, and can't begin or end with a space. Names and values together are at most 16,384 bytes.
Reserved names are rejected, for example
host,cookie,user-agent, and names that start withcontent-,proxy-,x-forwarded-, oranthropic-. For this check,_in a name counts as-.
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send telemetry-destinations-2026-08-11in this header.final StringendpointUrl()The base URL of your collector's OTLP/HTTP endpoint, for example https://gateway.example.com.final BetaTelemetryDestinationWorkspacesParamsworkspaces()Which of the organization's workspaces the destination covers. final Optional<String>displayName()Human-readable name for the destination. final Optional<TelemetryDestinationCreateParams.DestinationHeaders>headers()Request headers that the API sends with every delivery, typically your collector's authentication header (for example authorization).final Optional<BetaTelemetryDestinationTracesParams>traces()The settings for the traces that the destination receives. final JsonField<String>_endpointUrl()Returns the raw JSON value of endpointUrl. final JsonField<BetaTelemetryDestinationWorkspacesParams>_workspaces()Returns the raw JSON value of workspaces. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<TelemetryDestinationCreateParams.DestinationHeaders>_headers_()Returns the raw JSON value of headers. final JsonField<BetaTelemetryDestinationTracesParams>_traces()Returns the raw JSON value of traces. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final TelemetryDestinationCreateParams.BuildertoBuilder()final TelemetryDestinationCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static TelemetryDestinationCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of TelemetryDestinationCreateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
telemetry-destinations-2026-08-11in this header.
-
endpointUrl
final String endpointUrl()
The base URL of your collector's OTLP/HTTP endpoint, for example
https://gateway.example.com.The URL must use
httpsand a hostname, not an IP address. The port, if given, must be 443. The URL must not contain a query string, a fragment, or a username and password. At most 2,048 characters.A path prefix, such as
/otlp, is allowed. Don't include the per-signal path (/v1/traces), because the API appends it on delivery. If your collector takes traces on another path, also settraces.endpoint_url.
-
workspaces
final BetaTelemetryDestinationWorkspacesParams workspaces()
Which of the organization's workspaces the destination covers.
-
displayName
final Optional<String> displayName()
Human-readable name for the destination. Optional. 1 to 255 characters.
-
headers
final Optional<TelemetryDestinationCreateParams.DestinationHeaders> headers()
Request headers that the API sends with every delivery, typically your collector's authentication header (for example
authorization).The API never returns the values. Reads show only
header_names.At most 20 headers. Names are at most 128 characters. Two names can't differ only in case. Values are printable ASCII, at most 4,096 characters, and can't begin or end with a space. Names and values together are at most 16,384 bytes.
Reserved names are rejected, for example
host,cookie,user-agent, and names that start withcontent-,proxy-,x-forwarded-, oranthropic-. For this check,_in a name counts as-.
-
traces
final Optional<BetaTelemetryDestinationTracesParams> traces()
The settings for the traces that the destination receives. If you leave it out, every setting takes its default.
-
_endpointUrl
final JsonField<String> _endpointUrl()
Returns the raw JSON value of endpointUrl.
Unlike endpointUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaces
final JsonField<BetaTelemetryDestinationWorkspacesParams> _workspaces()
Returns the raw JSON value of workspaces.
Unlike workspaces, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_headers_
final JsonField<TelemetryDestinationCreateParams.DestinationHeaders> _headers_()
Returns the raw JSON value of headers.
Unlike headers, this method doesn't throw if the JSON field has an unexpected type.
-
_traces
final JsonField<BetaTelemetryDestinationTracesParams> _traces()
Returns the raw JSON value of traces.
Unlike traces, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final TelemetryDestinationCreateParams.Builder toBuilder()
-
_body
final TelemetryDestinationCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static TelemetryDestinationCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of TelemetryDestinationCreateParams.
The following fields are required:
.endpointUrl() .workspaces()
-
-
-
-