apiVersion: openlit.io/v1alpha1
kind: AutoInstrumentation
metadata:
name: custom-production
spec:
selector:
matchLabels:
environment: "production"
python:
instrumentation:
provider: "custom"
customInitImage: "my-registry.com/custom-instrumentation:v2.0.0"
imagePullPolicy: "IfNotPresent"
customPackages: "my-observability-sdk>=2.0.0,custom-metrics>=1.5.0"
env:
- name: OTEL_SERVICE_NAME
value: "custom-ai-service"
- name: CUSTOM_METRICS_ENDPOINT
value: "http://custom-backend:8080"
- name: LEGACY_TRACING_ENABLED
value: "true"
- name: PROPRIETARY_KEY
valueFrom:
secretKeyRef:
name: custom-secrets
key: api-key
otlp:
endpoint: "http://openlit:4318"
timeout: 60
resource:
environment: "production"
serviceName: "custom-ai-service"