Type: string
Service is the global service name that will be used to identify the program in the Instana backend.
Type: string
AgentHost is the Instana host agent host name.
Type: int
AgentPort is the Instana host agent port.
Note
AgentHost
and AgentPort
options have no effect in serverless environments. To specify the serverless acceptor endpoint, define the INSTANA_ENDPOINT_URL
env var.
See Serverless Monitoring for more details.
Type: int
MaxBufferedSpans is the maximum number of spans to buffer.
Type: int
ForceTransmissionStartingAt is the number of spans to collect before flushing the buffer to the agent.
Type: int
LogLevel is the initial logging level for the logger used by Instana tracer. The valid log levels are logger.{Error,Warn,Info,Debug}Level provided by the https://github.com/instana/go-sensor/logger package.
Note
This setting is only used to initialize the default logger and has no effect if a custom logger is set via instana.SetLogger()
Type: bool
EnableAutoProfile enables automatic continuous process profiling when set to true.
Type: int
MaxBufferedProfiles is the maximum number of profiles to buffer.
Type: bool
IncludeProfilerFrames is whether to include profiler calls into the profile or not.
Type: TracerOptions
Tracer contains tracer-specific configuration used by all tracers
Type: AgentClient
AgentClient client to communicate with the agent. In most cases, there is no need to provide it. If it is nil the default implementation will be used.
Type: SpanRecorder
Recorder records and manages spans. When this option is not set, instana.NewRecorder() will be used.
README | Tracing HTTP Outgoing Requests | Tracing SQL Driver Databases | Tracing Other Go Packages | Instrumenting Code Manually