-
Notifications
You must be signed in to change notification settings - Fork 580
feat(span-streaming): Add spans to telemetry pipeline, add span name and attributes (3) #5399
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
base: ivana/span-first/span-batcher
Are you sure you want to change the base?
feat(span-streaming): Add spans to telemetry pipeline, add span name and attributes (3) #5399
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Span Streaming
Bug Fixes 🐛
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Codecov Results 📊✅ 10 passed | Total: 10 | Pass Rate: 100% | Execution Time: 3.96s All tests are passing successfully. ❌ Patch coverage is 21.57%. Project has 13986 uncovered lines. Files with missing lines (181)
Generated by Codecov Action |
| self, telemetry: "Union[Log, Metric]" | ||
| self, telemetry: "Union[Log, Metric, StreamedSpan]" | ||
| ) -> None: | ||
| # TODO: turn Logs, Metrics into actual classes |
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.
Want to do this eventually, but it's a breaking change so it has to wait.
| span_id = trace_context.get("span_id") | ||
| if telemetry.get("span_id") is None and span_id: | ||
| telemetry["span_id"] = span_id | ||
| if not isinstance(telemetry, StreamedSpan): |
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.
The stuff for metrics and logs in this if should be moved elsewhere, but out of scope of this PR.
StreamedSpansince they're used in the pipelineChipping away at #5317 to transform it into reviewable and mergeable PRs.