Constant opentelemetry_semantic_conventions::trace::HTTP_SERVER_NAME[][src]

pub const HTTP_SERVER_NAME: Key;

The primary server name of the matched virtual host.

This should be obtained via configuration. If no such configuration can be obtained, this attribute MUST NOT be set ( net.host.name should be used instead).

http.url is usually not readily available on the server side but would have to be assembled in a cumbersome and sometimes lossy process from other information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus preferred to supply the raw data that is available.