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

[payment] - add manual instrumentation #157

Conversation

puckpuck
Copy link
Contributor

Fixes #53

  • Services extend automatic instrumentation.
    • New attributes/events attached to existing spans.
    • New spans are being created from existing spans.

Changes

Adds attributes to auto instrumented spans, and creates a new span with attributes.
If a bad card is used, span.recordException() is called from the auto-instrumented span, which ultimately creates a Span event.

@puckpuck puckpuck requested a review from a team June 18, 2022 04:30
Copy link
Member

@julianocosta89 julianocosta89 left a comment

Choose a reason for hiding this comment

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

Just a small comment but not a blocker.

I've also tested locally with and without errors on the charge function.
LGTM!

src/paymentservice/charge.js Outdated Show resolved Hide resolved
@cartersocha
Copy link
Contributor

@puckpuck please update the branch when you get a min & I’ll merge

@cartersocha
Copy link
Contributor

Let’s make sure the feature table & service tracing issue reflect the changes

@cartersocha cartersocha merged commit cd9c3e1 into open-telemetry:main Jun 23, 2022
@puckpuck puckpuck deleted the puckpuck.payment-manual-instrumentation branch June 30, 2022 02:44
GaryPWhite pushed a commit to wayfair-contribs/opentelemetry-demo that referenced this pull request Jun 30, 2022
* add manual instrumentation

* use service name for tracer
jmichalak9 pushed a commit to jmichalak9/opentelemetry-demo that referenced this pull request Mar 22, 2024
* add manual instrumentation

* use service name for tracer
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.

Review and enhance tracing support for payment service (node.js)
4 participants