-
Notifications
You must be signed in to change notification settings - Fork 13
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 metadata yaml generation #866
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #866 +/- ##
=======================================
Coverage 86.22% 86.22%
=======================================
Files 19 19
Lines 668 668
Branches 153 153
=======================================
Hits 576 576
Misses 92 92 ☔ View full report in Codecov by Sentry. |
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.
Great! There are a few things that need addressing:
-
There seem to be a lack of indentation for certain items. For example, items inside each first level object are not indented. Not sure if this would pose a problem to YAML parsers, but I'd much rather have indentation for readability and browsing purposes.
The same indentation issues appears in nested items, such as the dependencies within the resource detectors. -
There is no first level
instrumentations:
object — keys start right after the settings. -
No resource attribute information nor dependencies info, but I think it's OK for the latter to just resort to npm, especially if there are MANY dependencies. WDYT?
-
To preserve the same structure used by .NET, please rename the name key in settings to env.
With this, I think we'd already have an useful artifact for testing.
Should have better indenting now and verified it's parseable.
Fixed
Added resource detectors, I can add the dependency list for sure, but is there an actual need for it? Should they be first level dependencies?
Done! |
@seemk Could we try with adding them as first-level deps and see what comes out? If it's not too much work, that is. |
Added first level dependencies, the output is now
|
Seems reasonable! Let's go with it. |
@theletterf You need to approve as well in this case |
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.
Approved! Thanks for the hard work!
If possible the instrumentation target library versions are taken from dependency READMEs (however in the future a better mechanism is needed to gather these automatically, something to discuss in the JS sig).
Example yaml can be seen at https://github.com/signalfx/splunk-otel-js/actions/runs/7474145786/artifacts/1159275535