cyberark / conjur-authn-k8s-client

Authentication sidecar for Conjur Kubernetes integration.
https://www.conjur.org
Apache License 2.0
11 stars 14 forks source link

Add telemetry toggles #527

Open john-odonnell opened 12 months ago

john-odonnell commented 12 months ago

Depends on cyberark/conjur-opentelemetry-tracer#10

Desired Outcome

Currently, the Authenticator Client supports telemetry and trace reporting only if it is enabled by a dependent project. The standalone Client uses a No-op tracer in all contexts:

tracer, _ := trace.NewTracerProvider(trace.NoopProviderType, false, trace.TracerProviderConfig{})
defer tracer.Shutdown(context.Background())

The Authn Client should be able to report telemetry independently.

Implemented Changes

Use new functions from cyberark/conjur-opentelemetry-tracer#10 to setup desired tracer, and pass it to an AuthenticateWithContext implementation.

Connected Issue/Story

N/A

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be merged.

Changelog

Test coverage

Documentation

Behavior

Security