Skip to content

Latest commit

 

History

History
88 lines (50 loc) · 2.48 KB

options.md

File metadata and controls

88 lines (50 loc) · 2.48 KB

Options

Service

Type: string

Service is the global service name that will be used to identify the program in the Instana backend.

AgentHost

Type: string

AgentHost is the Instana host agent host name.

AgentPort

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.

MaxBufferedSpans

Type: int

MaxBufferedSpans is the maximum number of spans to buffer.

ForceTransmissionStartingAt

Type: int

ForceTransmissionStartingAt is the number of spans to collect before flushing the buffer to the agent.

LogLevel

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()

EnableAutoProfile

Type: bool

EnableAutoProfile enables automatic continuous process profiling when set to true.

MaxBufferedProfiles

Type: int

MaxBufferedProfiles is the maximum number of profiles to buffer.

IncludeProfilerFrames

Type: bool

IncludeProfilerFrames is whether to include profiler calls into the profile or not.

Tracer

Type: TracerOptions

Tracer contains tracer-specific configuration used by all tracers

AgentClient

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.

Recorder

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