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
feat: add Azure SDK Patching Subscriber #562
Conversation
markwolff
commented
Oct 30, 2019
- Adds subscriber for new azure SDK tracer patching
- Changes functional tests to use W3C header propagation
- Add AzureSDK functional test
- Support nested propagation testing in functional test suite
import { ISpanContext } from "diagnostic-channel"; | ||
import { EventEmitter } from "events"; | ||
|
||
export interface Span { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A clone of Span interface so that we don't need to take a Typescript 3 dependency
data: span.attributes.component || span.name, | ||
dependencyTypeName: span.attributes.component || span.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The span attributes aren't guaranteed to provide meaningful information in a standardized way right now, so for now just populate them with current "standards" and iterate back on this in the future
} | ||
AsyncScopeManager.with(span, () => { | ||
clients.forEach((client) => { | ||
if (span.kind === 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enum for SpanKind would be good here
…de.js into markwolff/add-azuresdk-patching