Skip to content

Commit

Permalink
Expose opencensus start errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lidizheng committed May 20, 2022
1 parent 1dd4544 commit 6859ae2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gcp/observability/observability.go
Expand Up @@ -66,7 +66,9 @@ func Start(ctx context.Context) error {
}

// Enabling tracing and metrics via OpenCensus
startOpenCensus(config, nil)
if err := startOpenCensus(config, nil); err != nil {
return err
}

// Logging is controlled by the config at methods level.
return defaultLogger.Start(ctx, config)
Expand Down

0 comments on commit 6859ae2

Please sign in to comment.