-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pluggable tracing support in gkelog (#17)
* gkelog: Pluggable interface for trace contexts Split up the existing jsonTrace function so it can use a different implementation for extracting the trace from the context. Add support for including the logging.googleapis.com/trace_sampled key in the logging payload. reference for structured logs ingested by the stackdriver logging agent (as used in GKE): https://cloud.google.com/logging/docs/agent/configuration#special-fields * Add gitignore with vim excludes * gkelog: opencensus TraceSpanExtractor Create a submodule to contain the opencensus TraceSpanExtractor since that has a rather expansive set of dependencies that we wouldn't want to force on all users. * gkelog: add an opentelemetry TraceSpanExtractor Similar to Opencensus, this one is its own submodule as well. It locks the current head version of opentelemetry because they renamed the context-extraction method and I don't want to rename it later. I had to remove the "sampled" variant of the test because there's currently no way that I could find to enable sampling without doing unholy things to the otel SpanContext struct (mostly setting flags manually). It looks like they have some missing plumbing, that should get resolved, so there's a TODO waiting for us when that's working.
- Loading branch information
Showing
12 changed files
with
636 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sw[op] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module github.com/vimeo/alog/emitter/gkelog/traceextractors/oc | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect | ||
github.com/vimeo/alog/v3 v3.5.0 | ||
go.opencensus.io v0.22.3 | ||
) | ||
|
||
replace github.com/vimeo/alog/v3 => ../../../../ |
Oops, something went wrong.