feat: export single envvar span during pre app start #77
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.
Creates single env var span that CLI uses to set env vars in environment before replaying tests (only if enabled in
.tusk/config.yamlremove old env var code
should be merged/deployed along with feat: replay tests grouped by environment and set envvars before starting server tusk-drift-cli#54
Note
Create a single pre-app-start env vars snapshot span (when enabled) and remove all old env var recording/replay logic; propagate
environmentthrough spans and exporters.ENV_VARS_SNAPSHOTspan inTuskDriftCore(RECORD mode, gated byrecording.enable_env_var_recording).getEnvironment()and pass environment into span creation and mock requests.TuskDriftandProtobufCommunicator.environmentinCleanSpanData,SpanTransformer,TdSpanExporter, and API export (ApiSpanAdapter), defaulting to empty string on wire.outputValueand genericmetadataobjects in span utils/transformer APIs.environmenton inbound replay spans sent to CLI.instrumentation/libraries/env/**,EnvVarTracker.MetadataObjecttype; useRecord<string, unknown>; addenvironment?: stringtoCleanSpanData.@use-tusk/drift-schemasto^0.1.19.Written by Cursor Bugbot for commit cf50eb4. This will update automatically on new commits. Configure here.