func go.pact.im/x/traces.String
41 uses
go.pact.im/x/traces (current package)
attr.go#L112: func String(k, v string) Attr {
go.pact.im/x/traces/_example
app.go#L92: traces.String("service.name", cfg.ServiceName),
service.go#L59: traces.String("greeter.name", name),
service.go#L93: traces.String("greeter.name", name),
go.pact.im/x/traces/grpctraces
handler.go#L141: traces.String(attrRPCSystemName, rpcSystemGRPC),
handler.go#L142: traces.String(attrRPCMethod, method),
handler.go#L182: sp.SetAttrs(traces.String(attrNetworkPeerAddress, host))
handler.go#L187: sp.SetAttrs(traces.String(attrServerAddress, host))
handler.go#L197: sp.SetAttrs(traces.String(attrRPCResponseStatusCode, codeName))
handler.go#L199: sp.SetAttrs(traces.String(attrErrorType, codeName))
go.pact.im/x/traces/httptraces
handler.go#L134: traces.String(attrHTTPRequestMethod, r.Method),
handler.go#L135: traces.String(attrURLPath, r.URL.Path),
handler.go#L136: traces.String(attrURLScheme, requestScheme(r)),
handler.go#L139: attrs = append(attrs, traces.String(attrServerAddress, host))
handler.go#L145: attrs = append(attrs, traces.String(attrNetworkProtocolVersion, proto))
handler.go#L148: attrs = append(attrs, traces.String(attrUserAgentOriginal, ua))
handler.go#L151: attrs = append(attrs, traces.String(attrClientAddress, addr))
handler.go#L185: sp.SetAttrs(traces.String(attrErrorType, errorTypePanic))
handler.go#L196: sp.SetAttrs(traces.String(attrHTTPRoute, route))
handler.go#L204: sp.SetAttrs(traces.String(attrErrorType, strconv.Itoa(status)))
transport.go#L101: traces.String(attrHTTPRequestMethod, req.Method),
transport.go#L102: traces.String(attrURLFull, req.URL.Redacted()),
transport.go#L105: attrs = append(attrs, traces.String(attrServerAddress, host))
transport.go#L123: sp.SetAttrs(traces.String(attrErrorType, fmt.Sprintf("%T", err)))
transport.go#L131: sp.SetAttrs(traces.String(attrNetworkProtocolVersion, proto))
transport.go#L134: sp.SetAttrs(traces.String(attrErrorType, strconv.Itoa(resp.StatusCode)))
go.pact.im/x/traces/otelbridge
convert.go#L64: return traces.String(key, kv.Value.AsString())
convert.go#L89: return traces.String(key, kv.Value.String())
go.pact.im/x/traces/pgxtraces
query.go#L34: attrs = append(attrs, traces.String(attrDBCollectionName, col))
query.go#L37: attrs = append(attrs, traces.String(attrDBQueryText, text))
query.go#L116: attrs = append(attrs, traces.String(attrDBCollectionName, col))
query.go#L119: attrs = append(attrs, traces.String(attrDBQueryText, text))
query.go#L168: attrs = append(attrs, traces.String(attrDBCollectionName, data.TableName.Sanitize()))
query.go#L213: attrs = append(attrs, traces.String(attrDBQueryText, text))
tracer.go#L124: traces.String(attrDBSystemName, dbSystemPostgreSQL),
tracer.go#L127: attrs = append(attrs, traces.String(attrDBOperationName, op))
tracer.go#L131: attrs = append(attrs, traces.String(attrDBNamespace, cfg.Database))
tracer.go#L134: attrs = append(attrs, traces.String(attrServerAddress, cfg.Host))
tracer.go#L183: traces.String(attrDBResponseStatusCode, pgErr.Code),
tracer.go#L184: traces.String(attrErrorType, pgErr.Code),
tracer.go#L187: sp.SetAttrs(traces.String(attrErrorType, fmt.Sprintf("%T", err)))