3scale / apicast-operator

Apache License 2.0
9 stars 15 forks source link

THREESCALE-9539 opentelemetry support #194

Closed eguzki closed 1 year ago

eguzki commented 1 year ago

What

Implements https://issues.redhat.com/browse/THREESCALE-9539

APICast can be instrumented using the opentelemetry client https://github.com/3scale/APIcast/pull/1379

This PR enables opentelemetry instrumentation using APIcast CR

---
apiVersion: apps.3scale.net/v1alpha1
kind: APIcast
metadata:
  name: apicast1
spec:
  ...
  openTelemetry:
    enabled: true
    tracingConfigSecretRef:
      name: otel-config

The new NGINX instrumentation using OpenTelemetry deprecates the opentracing instrumentation. If opentracing instrumentation is used, warning log will be shown.

TODO

Verification steps

❯ curl -v -H "Host: one" http://127.0.0.1:18080/get?user_key=foo

❯ open http://127.0.0.1:16686


Hit "Find Traces" with `Service` set to `apicast`. There should be at lease one trace.