Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d744a2b
commit 82e2032
Showing
11 changed files
with
107 additions
and
9 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
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,7 @@ | ||
receivers: | ||
opencensus: | ||
address: ":55678" | ||
|
||
exporters: | ||
opencensus: | ||
endpoint: "oc-collector:55678" |
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,14 @@ | ||
receivers: | ||
opencensus: | ||
port: 55678 | ||
|
||
exporters: | ||
queued-exporters: | ||
jaeger-all-in-one: | ||
num-workers: 4 | ||
queue-size: 100 | ||
retry-on-failure: true | ||
sender-type: jaeger-thrift-http | ||
jaeger-thrift-http: | ||
collector-endpoint: http://jaeger:14268/api/traces | ||
timeout: 5s |
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,28 @@ | ||
package opencensus | ||
|
||
import ( | ||
"time" | ||
|
||
"contrib.go.opencensus.io/exporter/ocagent" | ||
) | ||
|
||
// ExporterConfig configures an OpenCensus exporter. | ||
type ExporterConfig struct { | ||
Address string | ||
Insecure bool | ||
ReconnectPeriod time.Duration | ||
} | ||
|
||
// Options returns a set of OpenCensus exporter options used for configuring the exporter. | ||
func (c ExporterConfig) Options() []ocagent.ExporterOption { | ||
options := []ocagent.ExporterOption{ | ||
ocagent.WithAddress(c.Address), | ||
ocagent.WithReconnectionPeriod(c.ReconnectPeriod), | ||
} | ||
|
||
if c.Insecure { | ||
options = append(options, ocagent.WithInsecure()) | ||
} | ||
|
||
return options | ||
} |
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