Interface TelemetryDestinationService
-
- All Implemented Interfaces:
public interface TelemetryDestinationService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTelemetryDestinationService.WithRawResponseA view of TelemetryDestinationService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract TelemetryDestinationService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract TelemetryDestinationService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
workspaces
abstract WorkspaceService workspaces()
-
create
BetaTelemetryDestination create(TelemetryDestinationCreateParams 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.
-
create
abstract BetaTelemetryDestination create(TelemetryDestinationCreateParams params, RequestOptions requestOptions)
-
retrieve
BetaTelemetryDestination retrieve(String destinationId)
Read a destination's configuration, state, and most recent delivery results.
See the OpenTelemetry export guide to learn how the API delivers spans and when it disables a destination.
-
retrieve
BetaTelemetryDestination retrieve(String destinationId, TelemetryDestinationRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaTelemetryDestination retrieve(String destinationId, TelemetryDestinationRetrieveParams params)
-
retrieve
abstract BetaTelemetryDestination retrieve(TelemetryDestinationRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaTelemetryDestination retrieve(TelemetryDestinationRetrieveParams params)
-
retrieve
BetaTelemetryDestination retrieve(String destinationId, RequestOptions requestOptions)
-
update
BetaTelemetryDestination update(String destinationId)
Change a telemetry destination's settings, its state, or which workspaces it covers.
Send at least one field. Omitted fields keep their stored values, except the registered headers, which a change of the endpoint's hostname or port removes. Only
display_name,traces,traces.endpoint_url,traces.content_mode,traces.max_content_bytes, and individualheadersvalues acceptnull.If another request changes the destination while the update runs, the API returns a 409
conflict_error. Read the destination again, then retry the update.See the OpenTelemetry export guide to learn more about changing a destination.
-
update
BetaTelemetryDestination update(String destinationId, TelemetryDestinationUpdateParams params, RequestOptions requestOptions)
-
update
BetaTelemetryDestination update(String destinationId, TelemetryDestinationUpdateParams params)
-
update
abstract BetaTelemetryDestination update(TelemetryDestinationUpdateParams params, RequestOptions requestOptions)
-
update
BetaTelemetryDestination update(TelemetryDestinationUpdateParams params)
-
update
BetaTelemetryDestination update(String destinationId, RequestOptions requestOptions)
-
list
TelemetryDestinationListPage list()
List the organization's destinations, newest first, optionally only those that cover given workspaces.
See the OpenTelemetry export guide to learn more about destinations.
-
list
abstract TelemetryDestinationListPage list(TelemetryDestinationListParams params, RequestOptions requestOptions)
-
list
TelemetryDestinationListPage list(RequestOptions requestOptions)
-
delete
BetaDeletedTelemetryDestination delete(String destinationId)
Delete a destination and its workspace list.
The API stops sending spans to the destination. The spans of the workspaces it covered still go to the other destinations that cover them. A deleted destination can't be read, listed, or restored.
See the OpenTelemetry export guide to learn more about managing a destination.
-
delete
BetaDeletedTelemetryDestination delete(String destinationId, TelemetryDestinationDeleteParams params, RequestOptions requestOptions)
-
delete
BetaDeletedTelemetryDestination delete(String destinationId, TelemetryDestinationDeleteParams params)
-
delete
abstract BetaDeletedTelemetryDestination delete(TelemetryDestinationDeleteParams params, RequestOptions requestOptions)
-
delete
BetaDeletedTelemetryDestination delete(String destinationId, RequestOptions requestOptions)
-
test
BetaTelemetryDestinationTestResponse test(String destinationId)
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: itsresulthas the typesuccess, or the typefailureand the reason inerror. The destination's configuration,stateanddelivery_healthdo 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.
-
test
BetaTelemetryDestinationTestResponse test(String destinationId, TelemetryDestinationTestParams params, RequestOptions requestOptions)
-
test
BetaTelemetryDestinationTestResponse test(String destinationId, TelemetryDestinationTestParams params)
-
test
abstract BetaTelemetryDestinationTestResponse test(TelemetryDestinationTestParams params, RequestOptions requestOptions)
-
test
BetaTelemetryDestinationTestResponse test(String destinationId, RequestOptions requestOptions)
-
-
-
-