Documentation Index
Fetch the complete documentation index at: https://docs.golf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Configure OpenTelemetry (OTLP) export to send audit logs, metrics, and traces to any OTLP-compatible backend.
Prerequisites
- Golf Gateway deployed and running
- OpenTelemetry Collector or compatible backend (Grafana, Datadog, etc.)
gRPC (Recommended):exporters:
otel:
- name: primary-otel
enabled: true
endpoint: otel-collector.example.com:4317
protocol: grpc
service_name: golf-gateway
export_logs: true
export_metrics: true
HTTP/Protobuf:exporters:
otel:
- name: primary-otel
enabled: true
endpoint: https://otlp.example.com/v1/logs
protocol: http/protobuf
service_name: golf-gateway
headers:
Authorization: "Bearer ${OTEL_TOKEN}"
- Go to Connections > Add Connection
- Select OpenTelemetry
- Enter OTLP endpoint
- Select protocol (gRPC or HTTP)
- Configure which signals to export (logs, metrics, traces)
- Click Test Connection
- Click Save
Export signals
| Signal | YAML Field | Description |
|---|
| Logs | export_logs: true | Audit log entries |
| Metrics | export_metrics: true | Performance metrics |
| Traces | export_traces: true | Request traces |
Resource attributes
Golf Gateway includes these resource attributes:
| Attribute | Value |
|---|
service.name | From service_name field |
service.version | Gateway version |
golf.gateway.id | Gateway ID (if managed) |
golf.gateway.name | Gateway name |
Add custom attributes:
exporters:
otel:
- name: primary-otel
# ... other fields
resource_attributes:
environment: production
region: us-west-2
Semantic conventions
Log records follow OpenTelemetry semantic conventions:
| Attribute | Description |
|---|
event.name | Event type |
http.request.method | HTTP method |
url.path | Request path |
mcp.method | MCP method |
mcp.tool.name | Tool name |
Common OTLP backends
Consult your observability platform’s documentation for OTLP endpoint configuration:
Verify export is working
- Check health endpoint includes OTEL status
- View logs in your OTLP backend
- Search for
service.name: golf-gateway
Troubleshooting
- Connection timeout: Verify endpoint is reachable
- 401/403 errors: Check authentication headers
- No data appearing: Verify
export_logs: true in your YAML config