Skip to content

Configure Unsampled Span Pipeline for Genesis #390

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

yiyuan-he
Copy link
Contributor

What does this pull request do?

Configures unsampled span pipeline when AGENT_OBSERVABILITY_ENABLED is enabled.

We always send 100% spans to Genesis platform for agent observability because AI applications typically have low throughput traffic patterns and require comprehensive monitoring to catch subtle failure modes like hallucinations.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@yiyuan-he yiyuan-he requested a review from a team as a code owner June 11, 2025 04:16
Comment on lines +269 to +270
if not is_agent_observability_enabled():
return
Copy link
Member

Choose a reason for hiding this comment

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

Should we make general as to _export_unsampled_spans, and have this check only needed where this function is called. Pass in spen_exporter if it is custom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like this refactor will be a bit risky given tight timeline. The logic in _export_unsampled_span_for_lambda doesn't seem straighforward to combine together with _export_unsampled_span_for_agent_observability.

Agree it would be good to combine both into _export_unsampled_spans, but maybe later on when there is more bandwidth to carefully test.

What do you think?

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