MCPcopy Create free account
hub / github.com/astercloud/aster / WithOTelServiceVersion

Function WithOTelServiceVersion

pkg/telemetry/otel_adapter.go:74–78  ·  view source on GitHub ↗

WithOTelServiceVersion 设置服务版本

(version string)

Source from the content-addressed store, hash-verified

72
73// WithOTelServiceVersion 设置服务版本
74func WithOTelServiceVersion(version string) OTelOption {
75 return func(cfg *otelConfig) {
76 cfg.serviceVersion = version
77 }
78}
79
80// WithOTelAttributes 设置额外的 resource 属性
81func WithOTelAttributes(attrs ...attribute.KeyValue) OTelOption {

Callers 1

basicOTelExampleFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected