@@ -105,15 +105,13 @@ func WithDSN(dsn string) Option {
105105}
106106
107107// WithServiceVersion configures a `service.name` resource attribute.
108- // You can use this option together with other options that configure resource attributes.
109108func WithServiceName (serviceName string ) Option {
110109 return option (func (cfg * config ) {
111110 cfg .ServiceName = serviceName
112111 })
113112}
114113
115114// WithServiceVersion configures a `service.version` resource attribute, for example, `1.0.0`.
116- // You can use this option together with other options that configure resource attributes.
117115func WithServiceVersion (serviceVersion string ) Option {
118116 return option (func (cfg * config ) {
119117 cfg .ServiceVersion = serviceVersion
@@ -122,7 +120,6 @@ func WithServiceVersion(serviceVersion string) Option {
122120
123121// WithResourceAttributes configures resource attributes that describe an entity that produces
124122// telemetry, for example, such attributes as host.name, service.name, etc.
125- // You can use this option together with other options that configure resource attributes.
126123//
127124// The default is to use `OTEL_RESOURCE_ATTRIBUTES` env var, for example,
128125// `OTEL_RESOURCE_ATTRIBUTES=service.name=myservice,service.version=1.0.0`.
@@ -134,7 +131,7 @@ func WithResourceAttributes(resourceAttributes []attribute.KeyValue) Option {
134131
135132// WithResource configures a resource that describes an entity that produces telemetry,
136133// for example, such attributes as host.name and service.name. All produced spans and metrics
137- // with have these attributes
134+ // will have these attributes.
138135//
139136// WithResource overrides and replaces any other resource attributes.
140137func WithResource (resource * resource.Resource ) Option {
0 commit comments