opentelemetry-js
opentelemetry-js copied to clipboard
[WIP] entities prototype
trafficstars
Pulls in changes from the first prototype and applies them to the 2.0 SDK
TODO:
- [x] e2e tests
- [ ] unit tests
- [ ] add entity detectors (process/host probably a good start)
- [x] Make
Entitya type/interface instead of a class because it is accessed fromresource.entities - [x] Export pipeline
Open questions:
- Should detectors be able to detect resource attributes and entities, or just one or the other
- verify entity merge override ordering because it's the opposite of the current resource impl
Codecov Report
:x: Patch coverage is 25.89286% with 83 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 94.27%. Comparing base (1c1dd01) to head (b82a1e7).
Additional details and impacted files
@@ Coverage Diff @@
## main #5620 +/- ##
==========================================
- Coverage 95.17% 94.27% -0.91%
==========================================
Files 316 317 +1
Lines 8521 8625 +104
Branches 1763 1789 +26
==========================================
+ Hits 8110 8131 +21
- Misses 411 494 +83
| Files with missing lines | Coverage Δ | |
|---|---|---|
| ...l/packages/otlp-transformer/src/common/internal.ts | 100.00% <100.00%> (ø) |
|
| ...es/opentelemetry-resources/src/detect-resources.ts | 78.57% <100.00%> (ø) |
|
| ...kages/opentelemetry-resources/src/resource-impl.ts | 85.71% <54.28%> (ø) |
|
| ...ackages/opentelemetry-resources/src/entity-impl.ts | 9.45% <9.45%> (ø) |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.