-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a create_http_headers_for_my_span() zipkin_span method
The rationale is that I wanted to create a Kind=CLIENT span in server A with a new span_id (and parent_span_id of the span that had been active at the time), then generate headers with that same new span_id for the request to server B, where the span there would have `shared=True` in its local-root-span. So that gives me 2 spans total, the parent span, and a single shared span with cs/cr happening on server A and sr/ss happening on server B. If I'd just used create_http_headers_for_new_span(), then I'd have had three total spans: the parent span, a weird span with only cs/cr from server A, and a 3rd span with only sr/ss from server B. I'm not sure if not having this caused some of the confusion in Issue #126 or not...
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters