Skip to content

Conversation

@lmolkova
Copy link
Member

See #2988 - to enable log export in the distro someone needs to:

  • set OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
  • set OTEL_LOGS_EXPORTER=otlp

Let's default to OTLP exporter for logs and rely on OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED to guard logs configuration.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@lmolkova lmolkova requested a review from a team as a code owner November 22, 2024 22:10
@xrmx
Copy link
Contributor

xrmx commented Nov 25, 2024

@lmolkova please sort the imports :)

@xrmx xrmx merged commit 1737ee6 into open-telemetry:main Nov 26, 2024
566 checks passed
@IRusio
Copy link

IRusio commented Dec 12, 2024

i have a question regarding that. isn't it is a fact that i need to set up:

  • name: OTEL_LOGS_EXPORTER
    value: otlp_proto_http

  • name: OTEL_EXPORTER_OTLP_PROTOCOL
    value: http/protobuf

    to be able to send logs with auto instrumentation to collector(grafana alloy in my case)?

xrmx pushed a commit to xrmx/opentelemetry-python-contrib that referenced this pull request Jan 24, 2025
* Use OTLP log exporter by default in otel-distro

* changelog

* sort imports
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.

4 participants