function Exporters.add
Register an exporter. The runtime builds the corresponding sink after phase 3 and replays any buffered spans/logs into it.
Exactly one of
url (OTLP exporter) or file (local file/stderr/stdout
exporter) must be provided.
Args (OTLP shape):
url: OTLP collector URL
protocol: βgrpcβ (default) or βhttp/protobufβ
headers: optional dict[str,str] for auth/tenant routing
Args (file shape):
file: filesystem path, or βstderrβ / βstdoutβ
format: βcompactβ (default, one human-readable line per record) or
βjsonlβ (one JSON object per line, machine-parseable)
Common args:
signals: optional list, subset of [βtracesβ, βlogsβ, βmetricsβ];
default is all three
resource_attributes: optional dict[str,str] merged into the exporterβs
Resource
