Skip to content
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

[faraday] update the HTTP_HEADER_PARENT_ID to send the span_id instead of parent_id #212

Merged
merged 2 commits into from
Oct 6, 2017

Conversation

palazzem
Copy link
Contributor

@palazzem palazzem commented Oct 2, 2017

Overview

The current version sends the wrong value via headers when doing distributed tracing (span.parent_id instead of the span.span_id).

Closes #210

What is missing

  • add a regression test for the parent_id => span_id
  • add a regression test for to_s because we need to make a real call

@palazzem palazzem added enhancement integrations Involves tracing integrations do-not-merge/WIP Not ready for merge labels Oct 2, 2017
@palazzem palazzem added this to the 0.9.0 milestone Oct 2, 2017
@palazzem palazzem requested a review from p-lambert October 2, 2017 06:57
Copy link
Member

@p-lambert p-lambert left a comment

Choose a reason for hiding this comment

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

@palazzem palazzem force-pushed the palazzem/faraday-headers branch from cb24e6f to 0156962 Compare October 2, 2017 16:03
@@ -93,7 +93,7 @@ def test_distributed_tracing
span = request_span

assert_equal(headers[Ext::DistributedTracing::HTTP_HEADER_TRACE_ID], span.trace_id)
assert_equal(headers[Ext::DistributedTracing::HTTP_HEADER_PARENT_ID], span.parent_id)
assert_equal(headers[Ext::DistributedTracing::HTTP_HEADER_PARENT_ID], span.span_id)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@p-lambert done!

@palazzem palazzem force-pushed the palazzem/faraday-headers branch from 778f34a to 82ac4ca Compare October 5, 2017 22:52
@palazzem palazzem removed the do-not-merge/WIP Not ready for merge label Oct 6, 2017
@palazzem palazzem merged commit 6b8a28a into master Oct 6, 2017
@palazzem palazzem deleted the palazzem/faraday-headers branch October 6, 2017 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants