Documentation ¶
Overview ¶
Package namingschema allows to use the naming schema from the integrations to set different service and span/operation names based on the value of the DD_TRACE_SPAN_ATTRIBUTE_SCHEMA environment variable. This package is not intended for use by external consumers, no API stability is guaranteed.
Note that this package is for dd-trace-go.v1 internal testing utilities only. This package is not intended for use by external consumers, no API stability is guaranteed.
Note that this package is for dd-trace-go.v1 internal testing utilities only. This package is not intended for use by external consumers, no API stability is guaranteed.
Index ¶
- Constants
- func AWSOpName(awsService, awsOp, overrideV0 string) string
- func DBOpName(system string, overrideV0 string) string
- func OpName(t namingschema.IntegrationType) string
- func OpNameOverrideV0(t namingschema.IntegrationType, overrideV0 string) string
- func ServiceName(fallback string) string
- func ServiceNameOverrideV0(fallback, overrideV0 string) string
- func SetUseGlobalServiceName(v bool)
- func SetVersion(v Version)
- func UseGlobalServiceName() bool
- type IntegrationType
- type Version
Constants ¶
const ( // SchemaV0 represents naming schema v0. // This constant is not intended for use by external consumers, no API stability is guaranteed. SchemaV0 = namingschema.SchemaV0 // SchemaV1 represents naming schema v1. // This constant is not intended for use by external consumers, no API stability is guaranteed. SchemaV1 = namingschema.SchemaV1 )
Variables ¶
This section is empty.
Functions ¶
func AWSOpName ¶
AWSOpName returns the operation name for the given AWS service and operation. Note that this function is for dd-trace-go.v1 internal testing utilities only. This function is not intended for use by external consumers, no API stability is guaranteed.
func DBOpName ¶
DBOpName returns the operation name for the given database system. Note that this function is for dd-trace-go.v1 internal testing utilities only. This function is not intended for use by external consumers, no API stability is guaranteed.
func OpName ¶
func OpName(t namingschema.IntegrationType) string
OpName returns the operation name for the given integration type. Note that this function is for dd-trace-go.v1 internal testing utilities only. This function is not intended for use by external consumers, no API stability is guaranteed.
func OpNameOverrideV0 ¶
func OpNameOverrideV0(t namingschema.IntegrationType, overrideV0 string) string
OpNameOverrideV0 returns the operation name for the given integration type with a v0 override. Note that this function is for dd-trace-go.v1 internal testing utilities only. This function is not intended for use by external consumers, no API stability is guaranteed.
func ServiceName ¶
ServiceName returns the service name, falling back to the provided value if not set. Note that this function is for dd-trace-go.v1 internal testing utilities only. This function is not intended for use by external consumers, no API stability is guaranteed.
func ServiceNameOverrideV0 ¶
ServiceNameOverrideV0 returns the service name with a v0 override. Note that this function is for dd-trace-go.v1 internal testing utilities only. This function is not intended for use by external consumers, no API stability is guaranteed.
func SetUseGlobalServiceName ¶
func SetUseGlobalServiceName(v bool)
SetUseGlobalServiceName sets the value of the useGlobalServiceName setting used for this application. This function is not intended for use by external consumers, no API stability is guaranteed.
func SetVersion ¶
func SetVersion(v Version)
SetVersion sets the global naming schema version used for this application. This function is not intended for use by external consumers, no API stability is guaranteed.
func UseGlobalServiceName ¶
func UseGlobalServiceName() bool
UseGlobalServiceName returns the value of the useGlobalServiceName setting for this application. This function is not intended for use by external consumers, no API stability is guaranteed.
Types ¶
type IntegrationType ¶
type IntegrationType = namingschema.IntegrationType
type Version ¶
type Version = namingschema.Version
Version represents the available naming schema versions. This type is not intended for use by external consumers, no API stability is guaranteed.
func GetVersion ¶
func GetVersion() Version
GetVersion returns the global naming schema version used for this application. This function is not intended for use by external consumers, no API stability is guaranteed.
func SetDefaultVersion ¶
func SetDefaultVersion() Version
SetDefaultVersion sets the default global naming schema version. This function is not intended for use by external consumers, no API stability is guaranteed.