fix: gofmt -s across repo (CI format check)

This commit is contained in:
Hanzo AI
2026-06-02 11:38:03 -07:00
parent 2e6251dcb2
commit 63c9d94527
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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.
+4 -4
View File
@@ -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