Skip to content

Add debug warnings system #811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jtescher opened this issue Jul 12, 2020 · 1 comment
Open

Add debug warnings system #811

jtescher opened this issue Jul 12, 2020 · 1 comment
Labels
crate/opentelemetry Related to the `tracing-opentelemetry` crate. kind/feature New feature or request

Comments

@jtescher
Copy link
Collaborator

Feature Request

Crates

  • tracing-opentelemetry

Motivation

Currently OpenTelemetry cannot record events outside of a span. This can lead to confusion as tracing events are silently ignored if a containing span has not been created.

Proposal

Create a feature flag dev-warnings that crates can use to emit helpful debug/warning messages.

Alternatives

Alternatively, simply logging in dev mode may solve the problem, although not being able to silence these warnings may be annoying.

@jtescher jtescher changed the title Add dev warnings system Add debug warnings system Jul 12, 2020
@hawkw hawkw added kind/feature New feature or request crate/opentelemetry Related to the `tracing-opentelemetry` crate. labels Jul 13, 2020
@Michael-J-Ward
Copy link

A library specific lint from clippy would work for this, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate/opentelemetry Related to the `tracing-opentelemetry` crate. kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants