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

make trace.TraceContext as default context propagator #456

Merged
merged 6 commits into from
Feb 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update api/trace/trace_context_propagator.go
Co-Authored-By: Krzesimir Nowak <qdlacz@gmail.com>
  • Loading branch information
clsung and krnowak authored Jan 31, 2020
commit 46960733d548a851d8e6161174e97dc82d6e1140
2 changes: 1 addition & 1 deletion api/trace/trace_context_propagator.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type TraceContext struct{}
var _ propagation.TextFormat = TraceContext{}
var traceCtxRegExp = regexp.MustCompile("^[0-9a-f]{2}-[a-f0-9]{32}-[a-f0-9]{16}-[a-f0-9]{2}-?")

// DefaultPropagator is the default TraceContext propagator
// DefaultPropagator is the default trace propagator.
var DefaultPropagator propagation.TextFormat = TraceContext{}

func (hp TraceContext) Inject(ctx context.Context, supplier propagation.Supplier) {
Expand Down