Commit graph

7 commits

Author SHA1 Message Date
Radek Simko
0fe906fa8c make copyrightfix 2026-02-17 13:56:34 +00:00
Graham Davison
6883ab0ecf Updates for OTel SDK 1.30 2024-09-23 13:54:20 -07:00
Martin Atkins
d1b0632e82 stackruntime: Add HashiCorp copyright comments 2023-11-15 12:38:55 -08:00
Martin Atkins
2b7fad5bee stackruntime: Our fake telemetry span must be passed by pointer
Most of our Span actions don't mutate the object because we just
immediately emit messages to the test log, but SetName directly modifies
the span name so we need to pass by pointer so we can honor that rename.
2023-11-15 12:38:51 -08:00
Martin Atkins
03c981d9d0 promising,rpcapi,stackruntime: Quiet some staticcheck errors
This code is still under development and so we have some stuff that's
there to support further work despite not actually being used yet. We
should reconsider these changes later on once the work here has settled.
2023-11-15 12:38:51 -08:00
Martin Atkins
791a5fb8a6 stackruntime: Top-level "Validate" function
This is the public entry point for the overall validation of an entire
stack configuration. So far it supports validation only of input variables,
embedded stack calls, and output values. We'll grow this to support other
language constructs in later commits.

This is a relatively large commit due to introducing various supporting
infrastructure to help make evaluation possible at all. Subsequent commits
will hopefully be more focused due to being able to depend on the
foundations introduced here.
2023-11-15 12:38:51 -08:00
Martin Atkins
8c7acd5378 stackruntime: Helper for viewing traces in tests
Since our stackeval package is instrumented for OpenTelemetry tracing,
it's helpful to be able to see the trace events as part of the test log
when debugging.

tracesToTestLog arranges for any spans to be announced into the main test
log for the remainder of the current test, and then restores the original
trace provider afterwards as a test cleanup action.
2023-11-15 12:38:51 -08:00