Open
Conversation
Introduces a withSpan helper that wraps async functions in OpenTelemetry spans with enter/exit events, error recording, and automatic span lifecycle management. Foundation for function-level instrumentation.
Wraps all auth pipeline functions with OpenTelemetry spans: P_CreateChallenge, P_CreateChallengeDB, P_CreateChallengeMemory, P_VerifyChallenge, P_CompareChallenge, P_GenerateChallengeJWT, and related store/update functions.
Wraps all service functions with withSpan using Class.method naming: Bundle.validateSession, Bundle.parseOperations, Bundle.persistCreate/Spend, Executor.buildTransactionFromSlot, Executor.submitTransactionToNetwork, Executor.ensureOpexUtxosAvailable, Executor.handleExecutionFailure, Verifier.verifyTransactionOnNetwork, Mempool.reAddBundles, and P_AddOperationsBundle, P_GetBundle, P_ListBundles process pipelines.
….provider-b.toml Adds commented-out OTEL configuration section to .env.example, adds OTEL environment variables to docker-compose provider service, and removes unused fly.provider-b.toml deployment config.
3419ba7 to
c49391a
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
withSpantracing utility wrapping@opentelemetry/apiwith automatic span lifecycle, error recording, andexit_with_erroreventsP_CreateChallenge,P_VerifyChallenge,P_CompareChallenge,P_GenerateChallengeJWT, and store/update functionsP_AddOperationsBundle,P_GetBundleById,P_ListBundlesByUser) withBundle.*helper spansExecutor.*(includingensureOpexUtxosAvailable,handleExecutionFailure),Verifier.*,Mempool.*(includingreAddBundles)P_*for top-level processes,Class.methodfor internals.env.exampleanddocker-compose.ymlfly.provider-b.tomlTracing is opt-in via
OTEL_DENO=true— no overhead when disabled.How to verify
Run the full E2E flow with Jaeger locally — see the step-by-step Jaeger guide in
local-dev.Test plan
OTEL_DENO=truedeno task e2e+deno task verify-otelpasses 16/16 checks