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

Pika hooks #763

Merged
merged 1 commit into from
Oct 26, 2021
Merged

Pika hooks #763

merged 1 commit into from
Oct 26, 2021

Conversation

ItayGibel-helios
Copy link
Contributor

@ItayGibel-helios ItayGibel-helios commented Oct 19, 2021

Description

Adding consume_hook and produce_hook to Pika instrumentor

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • test_decorate_callback_with_hook
  • test_decorate_basic_publish_with_hook

Does This PR Require a Core Repo Change?

  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Copy link
Member

@oxeye-nikolay oxeye-nikolay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure you don't add opentelemetry-python-core as it is not needed anymore, and isn't a part of this repo

@oxeye-nikolay
Copy link
Member

Also, Please update the README.md and the __init__ files, so the features you added won't be secret features 😄

@@ -63,6 +63,21 @@ Usage

PikaInstrumentor.instrument_channel(channel, tracer_provider=tracer_provider)

* PikaInstrumentor also supports instrumenting with hooks that will be called when producing or consuming a message.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include these docs as part of the docstrings in __init__.py only. We want only one source of truth for docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants