Tracing API Workflows
Use these end-to-end workflows to deploy, connect, and operate resources using the IONOS CLOUD Tracing API.
Deploy a pipeline: Plan your pipeline configuration and provision it through to the
AVAILABLEstate.Connect to your pipeline: Retrieve the OTLP ingestion endpoint and Grafana endpoint, and connect your exporter using the credentials from deploy.
Operate a pipeline: Manage a running pipeline with day-to-day operations and deprovision it when no longer needed.
Note: If an operation returns an error, refer to the response details of each operation for API-specific error codes. For generic HTTP status codes used across IONOS CLOUD APIs, see HTTP Status Codes.
Deploy a Pipeline
Use this workflow to plan and provision a new pipeline.
Prerequisites
An access token that authenticates your API requests. For more information, see Authentication.
Step 1: Choose Protocol
Choose the OTLP protocol for your pipeline.
otlp-http: Use for OTLP HTTP exporters. Exporters must append/v1/tracesto theotlpEndpointwhen sending traces.otlp-grpc: Use for OTLP gRPC exporters. Exporters connect to theotlpEndpointon port 443 without a URL path.
Note: Changing the protocol after creation reprovisions the ingestion route behind the same DNS name and may temporarily interrupt ingestion while you reconfigure your exporter.
Step 2: Provision a Pipeline
Create the pipeline:
API: Create Pipeline
Action: Provide the required fields:
properties.name(1-36 characters) andproperties.protocol(otlp-grpcorotlp-http). Example request body:
Result: The API returns HTTP
201with the pipelineidandmetadata.stateasPROVISIONING. Note theidandmetadata.key. You need them in every subsequent operation.
Note:
Pipeline provisioning is asynchronous. Poll Retrieve Pipeline until
metadata.stateisAVAILABLE.Once
AVAILABLE,metadata.otlpEndpointcontains the stable ingestion endpoint andmetadata.grafanaEndpointcontains the Grafana URL.Save
metadata.key: the API returns it only in this response and in the Rotate Key response. You cannot retrieve it later.If
metadata.statereturnsFAILED, retrieve the pipeline using Retrieve Pipeline and inspectmetadata.statusMessagefor details. Submit a new Create Pipeline request to retry. Failed pipelines cannot be recovered in place.
Next steps: To connect your exporter to the pipeline, see Connect to Your Pipeline.
Connect to Your Pipeline
Use this workflow to retrieve the pipeline ingestion endpoint and connect your OTLP exporter.
Prerequisites
Ensure the pipeline is in the
AVAILABLEstate.You must have the
id(UUID) of the pipeline. You receive this when you complete the Deploy a Pipeline workflow.You must have the
metadata.keyyou saved in Step 2 of the Deploy a Pipeline workflow.
Step 1: Retrieve the Connection Details
API: Retrieve Pipeline
Path Parameter
pipelineId: The UUID of your pipeline.Action: Retrieve the pipeline to obtain the OTLP ingestion endpoint and Grafana URL.
Result: The API returns HTTP
200with the full pipeline object. Notemetadata.otlpEndpointandmetadata.grafanaEndpointfor Step 2.
Step 2: Connect Your OTLP Exporter
Use the following details to configure your OTLP exporter:
Endpoint
metadata.otlpEndpoint from Step 1
Authorization
Bearer <metadata.key> from the deploy or key rotation response
Protocol
Matches properties.protocol: otlp-http or otlp-grpc
Note: For OTLP HTTP exporters, append
/v1/tracesto theotlpEndpoint. For OTLP gRPC exporters, use theotlpEndpointon port 443 without a URL path.
Next steps: For day-2 tasks on a running pipeline, see Operate a Pipeline.
Operate a Pipeline
Use this workflow to perform day-2 tasks on a running pipeline.
Note: All pipeline updates use Ensure (full-replacement) semantics. Retrieve the full pipeline configuration before you submit any
PUTrequest. Any field omitted is set to its schema default or cleared to empty. It does not retain its previous value.
Prerequisites
Ensure the pipeline is in the
AVAILABLEstate.You must have the
id(UUID) of the pipeline. You receive this when you complete Deploy a Pipeline.
Update Pipeline Configuration
Change the pipeline name or OTLP protocol using the Ensure operation.
API: Ensure Pipeline
Path Parameter
pipelineId: The UUID of the pipeline.Action: Submit the full pipeline object with updated
properties.nameorproperties.protocol. Both fields must be present in every request.Result: The API returns HTTP
200and the pipeline transitions toUPDATING, then back toAVAILABLE. Poll Retrieve Pipeline onmetadata.stateto confirm.
Note: If
metadata.statereturnsFAILED, retrieve the pipeline using Retrieve Pipeline and inspectmetadata.statusMessagefor details. Submit a new Ensure Pipeline request to retry.
Rotate the Pipeline Key
Generate a new authentication key to invalidate the current key.
API: Rotate Key
Path Parameter
pipelineId: The UUID of the pipeline.Action: Submit the rotate key request. No request body is required.
Result: The API returns HTTP
201with the newkeyvalue. Save this key: the API returns it only in this response, and you cannot retrieve it again.
Note: Update your OTLP exporter configuration with the new key immediately after rotation. Rotation invalidates the previous key, and exporters using it stop sending traces.
Deprovision the Pipeline
Warning: Deleting a pipeline is irreversible. The delete operation permanently removes the pipeline and all associated ingestion configuration.
Deprovision the pipeline when it is no longer needed to release resources.
API: Delete Pipeline
Path Parameter
pipelineId: The UUID of the pipeline to delete.Action: Submit the delete request to permanently remove the pipeline.
Result: The API returns HTTP
202and accepts the delete request. Deletion is asynchronous, and it permanently removes the pipeline and all associated resources. You cannot recover them.
Note: If
metadata.statereturnsFAILEDinstead of the pipeline being removed, retrieve the pipeline using Retrieve Pipeline and inspectmetadata.statusMessagefor details. Submit a new Delete Pipeline request to retry.
Last updated
Was this helpful?