Open dyladan opened 1 year ago
Currently it is possible to call new Span(). We should make the constructor private to disallow this.
new Span()
Current test usages:
new span
new Span
Span
Possible additional goals:
Note: To do this, we can make Span private and for TypeScript we should be able to access with obj[“somePrivateProperty”]
obj[“somePrivateProperty”]
Currently it is possible to call
new Span()
. We should make the constructor private to disallow this.Current test usages:
new span
in contrib tests: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-dns/test/functionals/utils.test.ts#L150new Span
in JS testsSpan
in testsnew Span
in tests? @dyladan will look into thisPossible additional goals: