Skip to content

Implement span links API#1280

Merged
jaggederest merged 6 commits intomainfrom
1256_implement_span_links
Sep 1, 2022
Merged

Implement span links API#1280
jaggederest merged 6 commits intomainfrom
1256_implement_span_links

Conversation

@jaggederest
Copy link
Copy Markdown
Contributor

@jaggederest jaggederest commented Jun 17, 2022

What does this pull request do?

Implements a span links api to allow linkage of non-parent spans (e.g. originating asynchronous spans) to spans via a span context

Why is it important?

This is a part of the open telemetry spec as seen here: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/overview.md#links-between-spans

It will also be useful in future for e.g. SQS or RabbitMQ instrumentation

Checklist

  • I have signed the Contributor License Agreement.
  • My code follows the style guidelines of this project (See .rubocop.yml)
  • I have rebased my changes on top of the latest main branch
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Related issues

@jaggederest jaggederest linked an issue Jun 17, 2022 that may be closed by this pull request
@ghost
Copy link
Copy Markdown

ghost commented Jun 17, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-09-01T03:03:37.562+0000

  • Duration: 30 min 30 sec

Test stats 🧪

Test Results
Failed 0
Passed 44648
Skipped 80
Total 44728

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jaggederest jaggederest requested a review from estolfo June 20, 2022 03:38
@jaggederest jaggederest marked this pull request as ready for review June 20, 2022 03:38
@ghost
Copy link
Copy Markdown

ghost commented Jun 20, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 99.225% (128/129) 👍 0.006
Classes 99.225% (128/129) 👍 0.006
Lines 68.523% (2965/4327) 👍 0.009
Conditionals 100.0% (0/0) 💚

Copy link
Copy Markdown
Contributor

@estolfo estolfo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but tests are failing so we should get them fixed before merging.

Comment thread lib/elastic_apm/spies/sqs.rb
@jaggederest jaggederest force-pushed the 1256_implement_span_links branch from cfe1b3b to 8d13661 Compare June 23, 2022 17:25
@jaggederest jaggederest enabled auto-merge (squash) August 9, 2022 15:06
@jaggederest jaggederest force-pushed the 1256_implement_span_links branch from 6f223f9 to aeb7b3a Compare August 31, 2022 08:22
@jaggederest jaggederest merged commit fdcd667 into main Sep 1, 2022
@jaggederest jaggederest deleted the 1256_implement_span_links branch September 1, 2022 03:33
estolfo pushed a commit that referenced this pull request Mar 2, 2023
* Add span links to span context

* Fix broken conflict and add spec for span links

* Proper layout of linked spans in span context

* Add comment about proposed location of span links for actual messaging use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[META 643] Implement Span Links API

3 participants