Skip to content

Commit

Permalink
Opentelemetry changes for Petasos (#67)
Browse files Browse the repository at this point in the history
* Opentelemetry changes for Petasos

* Opentelemetry changes for Petasos

* Opentelemetry changes with Optional Tracing

* Opentelemetry integration with optional tracing

* Apply suggestions from code review

* match config section from other services

Co-authored-by: Joel Unzain <joe94@users.noreply.github.com>
  • Loading branch information
utsavbatra5 and joe94 authored May 1, 2021
1 parent bf33c14 commit ffc5507
Show file tree
Hide file tree
Showing 5 changed files with 1,054 additions and 29 deletions.
14 changes: 14 additions & 0 deletions deploy/packaging/petasos_spruce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,17 @@ service:
# (Optional) defaults to empty struct
# queryOptions:
# useCache: true

# tracing provides configuration around traces using OpenTelemetry.
# (Optional). By default, a 'noop' tracer provider is used and tracing is disabled.
tracing:
# provider is the provider name. Currently, stdout, jaegar and zipkin are supported.
# 'noop' can also be used as provider to explicitly disable tracing.
provider: (( grab $TRACING_PROVIDER_NAME || "noop" ))

# skipTraceExport only applies when provider is stdout. Set skipTraceExport to true
# so that trace information is not written to stdout.
# skipTraceExport: true

# endpoint is where trace information should be routed. Applies to zipkin and jaegar.
endpoint: (( grab $TRACING_PROVIDER_ENDPOINT || "http://zipkin:9411/api/v2/spans" ))
14 changes: 9 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ go 1.12

require (
github.com/c9s/goprocinfo v0.0.0-20190309065803-0b2ad9ac246b // indirect
github.com/go-kit/kit v0.9.0
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d // indirect
github.com/go-kit/kit v0.10.0
github.com/gorilla/mux v1.8.0 // indirect
github.com/justinas/alice v1.2.0
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.6.1
github.com/xmidt-org/webpa-common v1.10.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.1
github.com/xmidt-org/candlelight v0.0.4
github.com/xmidt-org/webpa-common v1.11.6
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.19.0
go.opentelemetry.io/otel v0.19.0
go.opentelemetry.io/otel/trace v0.19.0
)
Loading

0 comments on commit ffc5507

Please sign in to comment.