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

fix: only register otel during initialization #1736

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

beeme1mr
Copy link
Contributor

@beeme1mr beeme1mr commented Oct 7, 2024

Changes

Move the feature flag hook registration to the main method. This prevents the hook from being registered on every request.

This change brings the product-catalog-service in line with the checkout-service.

https://github.com/open-telemetry/opentelemetry-demo/blob/main/src/checkoutservice/main.go#L163-L164

Merge Requirements

For new features contributions, please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions
  • Appropriate documentation updates in the docs
  • Appropriate Helm chart updates in the helm-charts

Maintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.

Resolves: #1735

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
@beeme1mr beeme1mr requested a review from a team as a code owner October 7, 2024 17:41
@julianocosta89 julianocosta89 merged commit 026e3ba into open-telemetry:main Oct 14, 2024
28 checks passed
benakansara pushed a commit to benakansara/opentelemetry-demo that referenced this pull request Oct 15, 2024
* fix: only register otel during initialization

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>

* revert removal of fatal log

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
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.

[featureflag] productCatalogFailure flag raising 128 events
3 participants