Skip to content

tracing: ensure that OpenCensus is configured at most once#10519

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
yskopets:feature/opencensus-tracer-should-gracefully-decline-reconfiguration-attempts
Mar 25, 2020
Merged

tracing: ensure that OpenCensus is configured at most once#10519
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
yskopets:feature/opencensus-tracer-should-gracefully-decline-reconfiguration-attempts

Conversation

@yskopets
Copy link
Copy Markdown
Member

Description: tracing: ensure that OpenCensus is configured at most once
Risk Level: Low
Testing: unit tests
Docs Changes: N/A
Release Notes: N/A

Context:

Motivation:

  • Since OpenCensus can only support a single tracing configuration per entire process, we need to make sure that it is configured at most once
  • In case of a re-configuration attempt, reject it and provide a clear error message explaining why it is happening

…r() to std::shared_ptr<>

Signed-off-by: Yaroslav Skopets <yaroslav@tetrate.io>
Signed-off-by: Yaroslav Skopets <yaroslav@tetrate.io>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, nicely done. Looks great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants