Ensure the Python SDK sets `sentry.origin` for Structured Logs according to the documentation (converted to project) · Issue #4907 · getsentry/sentry-python · GitHub
Skip to content

Ensure the Python SDK sets sentry.origin for Structured Logs according to the documentation (converted to project) #4907

Description

@alexsohn1126

This issue has been converted to a project Ensure the Python SDK sets sentry.origin for Structured Logs according to the…


Refer to getsentry/sentry-docs#15127 for discussions on why this change was made.

tldr: We will consolidate sentry.origin for Logs according to the new specs:

From the updated docs:

Logs can be generated in three ways:

  • User calls Sentry’s Logging API directly: SDKs MUST NOT send a sentry.origin. As logs are charged based on size, we want to minimize the size of logs, and we intentionally deviate from the original Trace Origin documentation.
  • Captured from a logging library: Use auto.log. format. where is the relevant integration. For example, the .NET Serilog library emits:

{ "sentry.origin": "auto.log.serilog" }

  • Auto-emitted logs from other instrumented systems: Use the auto.. format as outlined in Trace Origin documentation.

{ "sentry.origin": "auto.db.prisma" }

Thank you! 🙏

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions