mirror of
https://github.com/luxfi/trace.git
synced 2026-07-27 01:48:15 +00:00
fix: gofmt -s across repo (CI format check)
This commit is contained in:
+3
-3
@@ -65,9 +65,9 @@ type Span struct {
|
||||
}
|
||||
|
||||
type SpanEvent struct {
|
||||
Name string `json:"name"`
|
||||
TimeUnixNs int64 `json:"timeUnixNs"`
|
||||
Attributes map[string]any `json:"attributes,omitempty"`
|
||||
Name string `json:"name"`
|
||||
TimeUnixNs int64 `json:"timeUnixNs"`
|
||||
Attributes map[string]any `json:"attributes,omitempty"`
|
||||
}
|
||||
|
||||
// zapExporter implements sdktrace.SpanExporter over a ZAP node connection.
|
||||
|
||||
@@ -57,11 +57,11 @@ func (t *tracer) Close() error {
|
||||
// ExporterConfig.Type semantics:
|
||||
// - Disabled → Noop tracer, zero allocations on span ops.
|
||||
// - ZAP → ZAP-native exporter — the canonical default. Ships spans
|
||||
// as JSON inside ZAP envelopes to a collector at
|
||||
// config.Endpoint (default 127.0.0.1:4317). No protobuf,
|
||||
// no OTLP, no grpc.
|
||||
// as JSON inside ZAP envelopes to a collector at
|
||||
// config.Endpoint (default 127.0.0.1:4317). No protobuf,
|
||||
// no OTLP, no grpc.
|
||||
// - GRPC / HTTP → legacy OTLP exporter. Requires `-tags grpc`; without it
|
||||
// we fall back to Noop so the host stays grpc-free.
|
||||
// we fall back to Noop so the host stays grpc-free.
|
||||
func New(config Config) (Tracer, error) {
|
||||
if config.ExporterConfig.Type == Disabled {
|
||||
return Noop, nil
|
||||
|
||||
Reference in New Issue
Block a user