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

feat: Configure logging #37

Merged
merged 27 commits into from
Dec 12, 2022
Merged

feat: Configure logging #37

merged 27 commits into from
Dec 12, 2022

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented Dec 12, 2022

Which problem is this PR solving?

Setups logging when using the distro. Log level can be set either using OTEL_LOG_LEVEL environment variable or the log_level option.

Short description of the changes

  • Setups and registers a logger during HoneycombOptions init
  • Use logger to indicate Honeycomb distro is being used during configure_opentelemetry
  • Removes left over debug log in a test

How to verify that this has the expected result

Log entires are printed out at the configured log level.

Note: This is based on the follow PR, and will auto update once it's merged

MikeGoldsmith and others added 24 commits December 5, 2022 19:42
# Conflicts:
#	honeycomb/opentelemetry/distro.py
…elemetry-python into mike/configure_pipeline

# Conflicts:
#	honeycomb/opentelemetry/distro.py
#	honeycomb/opentelemetry/options.py
…mbio/honeycomb-opentelemetry-python into mike/configure_pipeline

# Conflicts:
#	examples/hello-world-flask/app.py
#	examples/hello-world-flask/poetry.lock
#	examples/hello-world-flask/pyproject.toml
#	honeycomb/opentelemetry/distro.py
@MikeGoldsmith MikeGoldsmith added the type: enhancement New feature or request label Dec 12, 2022
@MikeGoldsmith MikeGoldsmith added this to the Beta milestone Dec 12, 2022
@MikeGoldsmith MikeGoldsmith requested a review from a team December 12, 2022 15:39
@MikeGoldsmith MikeGoldsmith self-assigned this Dec 12, 2022
@MikeGoldsmith MikeGoldsmith mentioned this pull request Dec 12, 2022
3 tasks
Base automatically changed from mike/configure-pipelines to main December 12, 2022 20:58
Copy link
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

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

sitting on some logs


def configure_opentelemetry(
options: HoneycombOptions = HoneycombOptions(),
):
_logger.debug("🐝 Configuring OpenTelemetry using Honeycomb distro 🐝")
Copy link
Member

Choose a reason for hiding this comment

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

BEES!

@robbkidd robbkidd changed the title Configure logging feat: Configure logging Dec 12, 2022
@robbkidd robbkidd merged commit 9cfd202 into main Dec 12, 2022
@robbkidd robbkidd deleted the mike/logging branch December 12, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup logging
2 participants