Skip to content
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

otel_log_level (common debug) proposal #139

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion specification/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ beyond the OpenTelemetry specification exist.
- `OTEL_TRACES_EXPORTER`
- Non-RUM distribution MUST default to `otlp` over gRPC with an endpoint of `localhost:4317`
- Non-RUM distribution MUST offer `jaeger-thrift-splunk` that defaults to `http://127.0.0.1:9080/v1/trace`

- `OTEL_LOG_LEVEL`
- Distribution SHOULD support `DEBUG` setting. With this value all relevant troubleshooting data should be logged.
Copy link
Contributor

@pellared pellared Oct 21, 2021

Choose a reason for hiding this comment

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

AFAIK supporting this would involve hacking in most of the SDKs. I would rather make a hack to convert debug to DEBUG if a component needs it as it seems more OTel compliant.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, we need to wait for the values to be finalized in the spec. Then it will be a no-brainer ;)

- Distribution MAY support additional levels:
- `INFO` - coarser-grained informational events than the `DEBUG`.
- `TRACE` - finer-grained informational events than the `DEBUG`.
Comment on lines +140 to +142
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're going to use OTEL_LOG_LEVEL (which is a good idea, since it's stable in the otel spec) I believe we should wait for the OTel spec issues to get resolved before deciding on anything here.

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't want to introduce log levels here that'll end up not being included in the otel spec...

#### Real User Monitoring Libraries

Real User Monitoring (RUM) instrumentation libraries cannot use environment variables for configuration.
Expand Down