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

all: propagate context through Transformables #3515

Merged
merged 2 commits into from
Mar 22, 2020

Conversation

axw
Copy link
Member

@axw axw commented Mar 20, 2020

Motivation/summary

We add a context.Context parameter to the transform.Transformable interface, and update all implementations and callers, propagating context from the publisher through the Transform calls.

This enables us to connect the sourcemap calls in error and span events to be traced.

Checklist

  • I have signed the Contributor License Agreement.
  • My code follows the style guidelines of this project (run make check-full for static code checks and linting)
  • I have rebased my changes on top of the latest master branch
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have added tests that prove my fix is effective or that my feature works
    - [ ] New and existing unit tests pass locally with my changes
  • I have updated CHANGELOG.asciidoc

How to test these changes

  1. Enable instrumentation
  2. Upload a sourcemap
  3. Upload a RUM transaction with a stacktrace

Screenshots

image

image

Related issues

None.

We add a context.Context parameter to the Transformable
interface, and update all implementations and callers.
This enables us to connect the sourcemap calls in error
and span events to be traced.
@axw axw requested a review from a team March 20, 2020 07:48
@axw axw merged commit ecab86b into elastic:master Mar 22, 2020
@axw axw deleted the transform-context branch March 22, 2020 06:52
axw added a commit to axw/apm-server that referenced this pull request Mar 22, 2020
* all: propagate context through Transformables

We add a context.Context parameter to the Transformable
interface, and update all implementations and callers.
This enables us to connect the sourcemap calls in error
and span events to be traced.

* Update changelog
axw added a commit that referenced this pull request Mar 23, 2020
* all: propagate context through Transformables

We add a context.Context parameter to the Transformable
interface, and update all implementations and callers.
This enables us to connect the sourcemap calls in error
and span events to be traced.

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

Successfully merging this pull request may close these issues.

None yet

2 participants