-
Notifications
You must be signed in to change notification settings - Fork 790
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
ES6 private members are unusable if class extends "InstrumentationBase" #3837
Comments
This might be the same/similar as #1989 |
This is because the base class is calling the function (which is not a unique issue to TypeScript / JavaScript). For this particular issue (overriding |
@MSNev, yeah, it looks like the best option. Thanks. Please, feel free to close the ticket. |
What happened?
I want to use ES6 private members in the class that extends
InstrumentationBase
. However, I cannot use them in the overriddenenable
method in the config because the super constructor calls it beforehand, and the call fails.Steps to Reproduce
Expected Result
The
bar
string is printed in the console.Actual Result
Fails with the error:
OpenTelemetry Setup Code
No response
package.json
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: