> For the complete documentation index, see [llms.txt](https://docs.cedana.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cedana.ai/references/api/otel.md).

# Otel

Cedana API for Otel credentials

## Get Otel credentials

> Returns Otel credentials (endpoint and headers) for tracing if available.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana API for Otel credentials","name":"Otel"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"OtelCredsResponse":{"properties":{"OTEL_EXPORTER_OTLP_ENDPOINT":{"type":"string"},"OTEL_EXPORTER_OTLP_HEADERS":{"type":"string"}},"required":["OTEL_EXPORTER_OTLP_ENDPOINT","OTEL_EXPORTER_OTLP_HEADERS"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/otel/credentials":{"get":{"description":"Returns Otel credentials (endpoint and headers) for tracing if available.","operationId":"get_creds","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtelCredsResponse"}}},"description":"Otel credentials retrieved successfully"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Credentials not configured on server"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Get Otel credentials","tags":["Otel"]}}}}
```
