Skip to content
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

feat(opentelemetry): support flag to export spans in a given file #8363

Merged
merged 6 commits into from
May 19, 2024

Conversation

v1v
Copy link
Contributor

@v1v v1v commented May 14, 2024

SUMMARY

Added support to store the exported spans in a file.

This is useful for adding UTs, as explained in https://github.com/open-telemetry/opentelemetry-python/blob/eef2015edd0d7c0a85840fd7bd1c7d57f1a8c2ee/opentelemetry-sdk/src/opentelemetry/sdk/trace/export/in_memory_span_exporter.py#L23-L27

For instance, I can now configure this plugin to run in isolation and validate it works as expected:

I don't know whether we could revisit #4871 so I could try to add the UTs to this project, rather than using my proposal in https://github.com/v1v/otel-ansible-callback-plugin.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/callback/opentelemetry

ADDITIONAL INFORMATION

this is only to help with adding unit tests
@ansibullbot ansibullbot added WIP Work in progress callback callback plugin feature This issue/PR relates to a feature request plugins plugin (any type) labels May 14, 2024
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added the ci_verified Push fixes to PR branch to re-run CI label May 14, 2024
@felixfontein felixfontein added the check-before-release PR will be looked at again shortly before release and merged if possible. label May 15, 2024
v1v added 3 commits May 16, 2024 19:01
…t-flag

* upstream/main:
  Add REUSE badge (ansible-collections#8365)
  Initial commit for django modutils and django_command module (ansible-collections#8349)
  [opentelemetry][callback] Add support for http exporter (ansible-collections#8321)
  Fix sanitize for keycloak_identitiy_provider. (ansible-collections#8355)
@v1v v1v changed the title opentelemetry: support flag to create output file feat(opentelemetry): support flag to export spans in a given file May 16, 2024
@v1v v1v marked this pull request as ready for review May 16, 2024 17:34
@ansibullbot
Copy link
Collaborator

@v1v this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibullbot ansibullbot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR and removed WIP Work in progress ci_verified Push fixes to PR branch to re-run CI labels May 16, 2024
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added the ci_verified Push fixes to PR branch to re-run CI label May 16, 2024
@ansibullbot ansibullbot removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels May 16, 2024
@felixfontein
Copy link
Collaborator

Looks good to me! If nobody objects, I'll merge this this weekend.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label May 19, 2024
@felixfontein felixfontein merged commit 5f48193 into ansible-collections:main May 19, 2024
132 checks passed
@felixfontein
Copy link
Collaborator

@v1v thanks for your contribution!

austinlucaslake pushed a commit to austinlucaslake/community.general that referenced this pull request May 25, 2024
…sible-collections#8363)

* opentelemetry: support flag to create output file

this is only to help with adding unit tests

* refactor and rename

* changelog

* rename

* fix linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
callback callback plugin feature This issue/PR relates to a feature request merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants