Documentation
¶
Overview ¶
Package observability configures OpenTelemetry for sei-load. See README.md for invariants and exemplar requirements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
RunScope RunScope
PrometheusNamespace string // defaults to "seiload"
OTLPEndpoint string // non-empty activates OTLP gRPC for metrics + traces
}
Config knobs for Setup. Zero value is usable (Prometheus-only, no OTLP).
type RunScope ¶
type RunScope struct {
ServiceVersion string // sei-load's own build version (distinct from CommitID, which names what's under test)
RunID string // e.g. GHA run id for autobake, benchmark job id elsewhere
ChainID string // ephemeral test chain for this run
CommitID string // sei-chain commit under test; exported as seiload.commit_id + 8-char seiload.commit_id_short
Workload string // "autobake" | "benchmark" | "loadtest"; alert rules match on this
InstanceID string // unique per process; falls back to hostname. Disambiguates cluster-of-seiload pods.
}
RunScope identifies a single sei-load invocation. Values ride on the OTel Resource, not per-sample metric labels (see README cardinality rationale).
func RunScopeFromEnv ¶
func RunScopeFromEnv() RunScope
RunScopeFromEnv reads SEILOAD_*. Missing values stay empty.
Click to show internal directories.
Click to hide internal directories.