-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nginx uses 8 byte trace ids whereas OpenCensus expects trace ids which are 16 bytes. When we encounter an 8 byte trace id, we discard it, breaking the trace tree. When reading trace id headers, we now left-pad trace ids with 0s to 16 bytes. This is consistent with the way that OpenCensus handles trace ids less than 16 bytes: https://github.com/census-instrumentation/opencensus-go/blob/master/plugin/ochttp/propagation/b3/b3.go#L66 We also now log the appropriate error when we fail to emit a span. This will allow us to distinguish between the scenario when the span receiver has been dropped vs when span conversion fails. Signed-off-by: Alex Leong <alex@buoyant.io>
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 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