feat(observability): add support for tracing#23
Open
thiagohsc21 wants to merge 1 commit into
Open
Conversation
thiagohsc21
force-pushed
the
thiagohsc/tracing-sup-for-statsig
branch
3 times, most recently
from
June 17, 2026 21:38
91b9f63 to
b26f2b5
Compare
EduardoGiacomini
approved these changes
Jun 18, 2026
EduardoGiacomini
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Some points do fix:
- Can you provide a minimal PR description write in Eglish?
- It will be necessary change the crate version to publish the code.
thiagohsc21
force-pushed
the
thiagohsc/tracing-sup-for-statsig
branch
from
June 18, 2026 12:32
b26f2b5 to
c9e1ca7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
check_gate,get_dynamic_config,get_config,get_experiment,get_experiment_without_local_evaluation)otel.namefor readable Datadog waterfallsstatsig.evaluationattribute distinguisheshttp(server round-trip) fromlocal(in-memory) evaluationsget_experiment_remotespan name fromget_experimentto avoid trace collisionsMotivation
The statsig-rs SDK silently falls back to HTTP server-side evaluation when a
ConditionTypeorOperatorTypeisn't implemented locally. These round-trips (~30-50ms) are invisible in APM, making it hard to diagnose unexpected latency in endpoints that appear to only do in-memory work.What changes
src/client.rs: wrap each evaluation method body withasync { ... }.instrument(span).awaittracingwhich is already a dependency)What does NOT change
log_eventintentionally left uninstrumented (fire-and-forget analytics, not evaluation)