# Functions

LogError sets the error=true tag on the Span and logs err as an "error" event.
RPCServerOption returns a StartSpanOption appropriate for an RPC server span with `client` representing the metadata for the remote peer Span if available.

# Variables

Component is a low-cardinality identifier of the module, library, or package that is generating a span.
DBInstance is database instance name.
DBStatement is a database statement for the given database type.
DBType is a database type.
DBUser is a username for accessing database.
Error indicates that operation represented by the span resulted in an error.
HTTPMethod is the HTTP method of the request, and is case-insensitive.
HTTPStatusCode is the numeric HTTP status code (200, 404, etc) of the HTTP response.
HTTPUrl should be the URL of the request being handled in this segment of the trace, in standard URI format.
MessageBusDestination is an address at which messages can be exchanged.
PeerAddress records the address name of the peer.
PeerHostIPv4 records IP v4 host address of the peer.
PeerHostIPv6 records IP v6 host address of the peer.
PeerHostname records the host name of the peer.
PeerPort records port number of the peer.
PeerService records the service name of the peer.
SamplingPriority determines the priority of sampling this Span.
SpanKind hints at relationship between spans, e.g.
These constants define common tag names recommended for better portability across tracing systems and languages/platforms.
SpanKindConsumer marks a span representing the consumer-side of a message bus.
These constants define common tag names recommended for better portability across tracing systems and languages/platforms.
SpanKindProducer marks a span representing the producer-side of a message bus.
These constants define common tag names recommended for better portability across tracing systems and languages/platforms.
SpanKindRPCClient marks a span representing the client-side of an RPC or other remote call.
These constants define common tag names recommended for better portability across tracing systems and languages/platforms.
SpanKindRPCServer marks a span representing the server-side of an RPC or other remote call.

# Type aliases

BoolTagName is a common tag name to be set to a bool value.
IPv4TagName is a common tag name to be set to an ipv4 value.
SpanKindEnum represents common span types.
StringTagName is a common tag name to be set to a string value.
Uint16TagName is a common tag name to be set to a uint16 value.
Uint32TagName is a common tag name to be set to a uint32 value.