Skip to content

Pika hooks#763

Merged
ocelotl merged 1 commit intoopen-telemetry:mainfrom
helios:pika_hooks
Oct 26, 2021
Merged

Pika hooks#763
ocelotl merged 1 commit intoopen-telemetry:mainfrom
helios:pika_hooks

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 😄

@ItayGibel-helios ItayGibel-helios force-pushed the pika_hooks branch 2 times, most recently from 14c47c2 to 2c9341d Compare October 21, 2021 10:40

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

@github-actions github-actions bot requested a review from nikosokolik October 26, 2021 08:06
@ocelotl ocelotl merged commit 286f26b into open-telemetry:main Oct 26, 2021
@nozik nozik deleted the pika_hooks branch November 7, 2021 15:13
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