Anyone managed to use opentelemetry from awx/ansible

ansible.cfg

[defaults]
ansible_managed = Ansible managed: Do NOT edit this file manually!
display_failed_stderr = True
forks = 50
retry_files_enabled = False
host_key_checking = False
nocows = 1
interpreter_python = auto_silent
callbacks_enabled = community.general.opentelemetry
[ssh_connection]
scp_if_ssh = True
control_path = %(directory)s/%%h-%%p-%%r
[callback_opentelemetry]
enable_from_environment = ANSIBLE_OPENTELEMETRY_ENABLED

environment vars:

export OTEL_EXPORTER_OTLP_ENDPOINT=http://tempo-prod-11-prod-eu-west-2.grafana.net:443
export OTEL_EXPORTER_OTLP_HEADERS="authorization=glc_eyredacted"
export OTEL_SERVICE_NAME=ansible
export ANSIBLE_OPENTELEMETRY_ENABLED=true
pip list -v | grep opent
opentelemetry-api 1.22.0 
opentelemetry-exporter-otlp              1.22.0
opentelemetry-exporter-otlp-proto-common 1.22.0
opentelemetry-exporter-otlp-proto-grpc   1.22.0 
opentelemetry-exporter-otlp-proto-http   1.22.0
opentelemetry-instrumentation            0.43b0
opentelemetry-proto                      1.22.0 
opentelemetry-sdk                        1.22.0
opentelemetry-semantic-conventions       0.43b0

errors:

Transient error StatusCode.DEADLINE_EXCEEDED encountered while exporting traces to tempo-prod-11-prod-eu-west-2.grafana.net:443, retrying in 1s.
Transient error StatusCode.UNAVAILABLE encountered while exporting traces to tempo-prod-11-prod-eu-west-2.grafana.net:443, retrying in 2s.

I see that AWX added support for Otel in 24.5.0, Announcing AWX 24.5.0 and AWX-Operator 2.18.0, though I can’t find any documentation on how to do it.

There will be documentation regarding this very soon! :smile_cat:

1 Like