setServiceInfo

abstract fun setServiceInfo(serviceName: String, serviceVersion: String, serviceNamespace: String? = null)(source)

Sets the service information reported in resource attributes.

Parameters

serviceName

Value for the service.name resource attribute.

serviceVersion

Value for the service.version resource attribute.

serviceNamespace

Value for the service.namespace resource attribute, or null to omit it.