-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opentelemetry stops sending traces with 9.0.0 #8566
Comments
Files identified in the description: If these files are incorrect, please update the |
#8321 is the PR that introduced the support for the As far as I see, the change uses the same exporter by default. Can you try to run the plugin with the explicit configuration entries?
IIUC, you tried locally running |
Tried setting all of the possible config options to their defaults in the ansible.cfg and still the same issue, it just simply isn't trying to send the traces. If I do a |
Seeing the same issue here. Works nicely in 8.6, but silently stops sending traces in >=9.0.0. |
I can see a few changes were added to v9.0: IIUC, from the description, the issue might be related to supporting HTTP exporters and the existing GRPC support. @wilfriedroset @russoz, since you worked and helped on #8321, would you mind if I asked you to double-check if things work nicely on your end if you use >= |
tested with 9.2.0. problem persist 8.6.3 works ok ansible [core 2.14.14] |
Hi @v1v I pretty much helped review it from a Python/Ansible perspective, I am not familiar enough with OpenTelemetry to make a call on the plugin logic. @wilfriedroset Would it be possible for you to double check the code change? TIA |
I have just reviewed the changes in that PR, and to the best of my ability I could not find anything that would be a problem. There are 4 other PRs after #8321 that might have introduced a problem (I have no x-ref' d them with the version tag, so probably not all of them apply). |
Summary
When going from 8.6.2 to 9.0.0 the opentelemetry callback stops sending traces to the endpoint. Same exact configuration and traces get forwarded in 8.6.2 but go nowhere in 9.0.0. I suspect it's due to how the exporter is getting picked but can't seem to figure out how to make it work.
Issue Type
Bug Report
Component Name
opentelemetry callback
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
No response
Steps to Reproduce
ansibile config:
[defaults]
callbacks_enabled = community.general.opentelemetry
Run playbook
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 ansible-playbook playbook.yml
Expected Results
Expect traces to be sent to endpoint
Actual Results
Traces are never forwarded
Code of Conduct
The text was updated successfully, but these errors were encountered: