Skip to content

Conversation

@hassiebp
Copy link
Contributor

@hassiebp hassiebp commented Jun 27, 2025

Important

Modify LangfuseSpanProcessor to use OpenTelemetry's default flush settings when environment variables are not set.

  • Behavior:
    • Modify LangfuseSpanProcessor in span_processor.py to use OpenTelemetry's default flush settings when LANGFUSE_FLUSH_AT and LANGFUSE_FLUSH_INTERVAL are not set.
    • flush_at and flush_interval are set to None if environment variables are not provided, allowing OpenTelemetry defaults to apply.

This description was created by Ellipsis for eace769. You can customize this summary. It will automatically update as commits are pushed.

Greptile Summary

Disclaimer: Experimental PR review

Modifies flush settings handling in langfuse/_client/span_processor.py to better align with OpenTelemetry's default behavior, removing hardcoded fallback values.

  • Removes hardcoded defaults (15 for flush_at, 0.5 for flush_interval) in favor of OpenTelemetry's native BatchSpanProcessor defaults
  • Changes environment variable handling to pass through None values when not explicitly set
  • Improves integration with OpenTelemetry's standard behavior for span processing

@hassiebp hassiebp enabled auto-merge (squash) June 27, 2025 10:19
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

LGTM

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@hassiebp hassiebp disabled auto-merge June 27, 2025 10:26
@hassiebp hassiebp merged commit 490163d into main Jun 27, 2025
6 of 10 checks passed
@hassiebp hassiebp deleted the hassieb/lfe-5501 branch June 27, 2025 10:26
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.

2 participants