Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Steffen911
Copy link
Member

@Steffen911 Steffen911 commented Sep 12, 2025

Important

Enhance getScoresForPostHog to export non-trace scores by including session_id and dataset_run_id, adjusting query logic and entity type determination.

  • Behavior:
    • getScoresForPostHog in scores.ts now exports non-trace scores by including session_id and dataset_run_id.
    • Adjusts query to handle scores with trace_id, session_id, or dataset_run_id.
    • Determines effectiveSessionId and effectiveTraceId based on available IDs.
    • Adds langfuse_score_entity_type to distinguish between trace, session, and dataset_run scores.
  • Query Logic:
    • Modifies query to include scores with session_id or dataset_run_id when trace_id is null.
    • Adjusts join conditions to accommodate scores without a trace_id.

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

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. feat-scores labels Sep 12, 2025
@Steffen911 Steffen911 added this pull request to the merge queue Sep 12, 2025
@dosubot dosubot bot added the auto-merge This PR is set to be merged label Sep 12, 2025
Merged via the queue into main with commit 9f066a2 Sep 12, 2025
30 checks passed
@Steffen911 Steffen911 deleted the steffen/lfe-6641-posthog-session-scores branch September 12, 2025 15:29
@dosubot dosubot bot removed the auto-merge This PR is set to be merged label Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat-scores size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant