Skip to content

Commit

Permalink
chore: add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Oct 4, 2022
1 parent 3221d18 commit 6b6a44f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions otelplay/otelplay.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ func TraceURL(span trace.Span) string {
}
}

// ConfigureOpentelemetry configures Opentelemetry to export spans to Uptrace, Jaeger,
// or console depending on environment variables.
//
// You can use it to run examples, but don't use it in your applications. Instead, use
// uptrace-go or opentelemetry-go directly. See https://uptrace.dev/get/uptrace-go.html
func ConfigureOpentelemetry(ctx context.Context) func() {
switch {
case os.Getenv("UPTRACE_DSN") != "":
Expand Down

0 comments on commit 6b6a44f

Please sign in to comment.