Interface TelemetryDestinationServiceAsync
-
- All Implemented Interfaces:
public interface TelemetryDestinationServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTelemetryDestinationServiceAsync.WithRawResponseA view of TelemetryDestinationServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract TelemetryDestinationServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract TelemetryDestinationServiceAsync 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 WorkspaceServiceAsync workspaces()
-
create
CompletableFuture<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 CompletableFuture<BetaTelemetryDestination> create(TelemetryDestinationCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<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
CompletableFuture<BetaTelemetryDestination> retrieve(String destinationId, TelemetryDestinationRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaTelemetryDestination> retrieve(String destinationId, TelemetryDestinationRetrieveParams params)
-
retrieve
abstract CompletableFuture<BetaTelemetryDestination> retrieve(TelemetryDestinationRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaTelemetryDestination> retrieve(TelemetryDestinationRetrieveParams params)
-
retrieve
CompletableFuture<BetaTelemetryDestination> retrieve(String destinationId, RequestOptions requestOptions)
-
update
CompletableFuture<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
CompletableFuture<BetaTelemetryDestination> update(String destinationId, TelemetryDestinationUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<BetaTelemetryDestination> update(String destinationId, TelemetryDestinationUpdateParams params)
-
update
abstract CompletableFuture<BetaTelemetryDestination> update(TelemetryDestinationUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<BetaTelemetryDestination> update(String destinationId, RequestOptions requestOptions)
-
list
CompletableFuture<TelemetryDestinationListPageAsync> 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 CompletableFuture<TelemetryDestinationListPageAsync> list(TelemetryDestinationListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<TelemetryDestinationListPageAsync> list(TelemetryDestinationListParams params)
-
list
CompletableFuture<TelemetryDestinationListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<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
CompletableFuture<BetaDeletedTelemetryDestination> delete(String destinationId, TelemetryDestinationDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<BetaDeletedTelemetryDestination> delete(String destinationId, TelemetryDestinationDeleteParams params)
-
delete
abstract CompletableFuture<BetaDeletedTelemetryDestination> delete(TelemetryDestinationDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<BetaDeletedTelemetryDestination> delete(TelemetryDestinationDeleteParams params)
-
delete
CompletableFuture<BetaDeletedTelemetryDestination> delete(String destinationId, RequestOptions requestOptions)
-
test
CompletableFuture<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
CompletableFuture<BetaTelemetryDestinationTestResponse> test(String destinationId, TelemetryDestinationTestParams params, RequestOptions requestOptions)
-
test
CompletableFuture<BetaTelemetryDestinationTestResponse> test(String destinationId, TelemetryDestinationTestParams params)
-
test
abstract CompletableFuture<BetaTelemetryDestinationTestResponse> test(TelemetryDestinationTestParams params, RequestOptions requestOptions)
-
test
CompletableFuture<BetaTelemetryDestinationTestResponse> test(TelemetryDestinationTestParams params)
-
test
CompletableFuture<BetaTelemetryDestinationTestResponse> test(String destinationId, RequestOptions requestOptions)
-
-
-
-