setServiceInfo

expect open override 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.

fun setServiceInfo(serviceName: String, serviceVersion: String)(source)

Java-friendly 2-arg overload of setServiceInfo that omits the optional serviceNamespace.