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

Call options fn on each invocation in tracer.wrap #1191

Merged
merged 1 commit into from Jan 8, 2021

Conversation

bengl
Copy link
Collaborator

@bengl bengl commented Jan 7, 2021

What does this PR do?

Because the options variable in tracer.wrap was being re-assigned,
options functions were only being executing a single time, and then the
same result would be cached. This is fixed by using a variable local to
the function invocation.

Motivation

Fixes #1181

Because the options variable in tracer.wrap was being re-assigned,
options functions were only being executing a single time, and then the
same result would be cached. This is fixed by using a variable local to
the function invocation.

Fixes #1181
@bengl bengl requested a review from a team as a code owner January 7, 2021 15:36
@rochdev rochdev added bug Something isn't working core labels Jan 7, 2021
@rochdev rochdev added this to the 0.30.0 milestone Jan 7, 2021
@rochdev rochdev merged commit c565a85 into master Jan 8, 2021
Czechh added a commit that referenced this pull request Jan 11, 2021
* master:
  fix ts for aws split-by-service change (#1201)
  [ci-app] Better Test Name in Jest Instrumentation (#1190)
  v0.30.0 (#1198)
  add type definitions for aws-sdk service configuration (#1197)
  add option to enable/disable tracing of individual aws services (#1193)
  replace blacklist and whitelist with blocklist and allowlist (#1196)
  add container tagging support for ecs docker id (#1176)
  add option to split ioredis service name by instance (#1194)
  Call options fn on each invocation in tracer.wrap (#1191)
  export the tracer from implicit init file (#1192)
  fix double-routing in restify (#1161)
  [CIAPP-474] Mocha support (#1162)
  Add KafkaJS support (#1146)
  Revert "wrap end on prototype instead of instances (#1127)" (#1189)
  fix missing span types in some web and worker plugins (#1178)
  [ci-app] Fix Jest Flaky Test Setup and Use More Supported Branch Extraction (#1188)
@tlhunter tlhunter deleted the bengl/fixtracerwrap branch January 19, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The options callback to tracer.wrap is called only once
2 participants