-
Notifications
You must be signed in to change notification settings - Fork 767
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
Add package for agent-like experience #3513
Conversation
Seems like a cool idea. Any reason you decided to make this a dedicated package instead of a custom entrypoint in the sdk-node package? |
I wasn't sure where the best place for it was so I went with a dedicated package, as I thought this separation would make it easier for new users to use it. |
How would this work when you need to define or override existing Metric views for some the instrumentations? |
Currently, this is not possible as there's no way of configuring metric views using environment variables. |
Interesting idea. I have been thinking to let it read a json file and/or javascript file that returns an array of |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3513 +/- ##
==========================================
- Coverage 94.01% 93.89% -0.12%
==========================================
Files 268 269 +1
Lines 7920 7931 +11
Branches 1641 1641
==========================================
+ Hits 7446 7447 +1
- Misses 474 484 +10
|
There is currently an effort in progress to define a configuration file mechanism for OTel SDKs. Here is a JS prototype that I just worked on. Just an FYI since it is related. |
This mechanism will make the agent experience much better! 🙂 |
Moved this PR to the js-contrib repository to avoid creating dependency cycles. |
Which problem is this PR solving?
This is still WIP
This is a new experimental package called
opentelemetry-instrumentation-agent
for an agent-like experience for JS. Exporters can be configured using environment variables so this will allow for auto instrumentation with no code changes.Users can use this as follows:
Type of change
How Has This Been Tested?
There are no tests currently but will be added soon
Checklist: