Class TransportConfig
java.lang.Object
codes.grow.packages.skywalking.core.TransportConfig
Settings of one
HttpTransport. Service configs translate their common fields (SPEC
section 2.2) into this class.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Returns the base URL.static TransportConfig.BuilderStarts a builder with the SPEC defaults.clock()Returns the clock used forRetry-Afterdates.Returns the connection setup timeout.Returns the service error mapper.headers()Returns the extra headers sent with every request.hooks()Returns the hooks.Returns the secret values removed from every error message, hook and log line.logger()Returns the logger.proxy()Returns the proxy URL.Returns the per-attempt timeout.retry()Returns the retry policy.Returns the vendor headers read as a retry hint when a 429 or 503 response has noRetry-After(for exampleX-RateLimit-Reset), parsed withRetryPolicy.parseRateLimitReset(java.lang.String, java.time.Instant).tls()Returns the TLS options.Returns the budget of a whole call including retries and backoff.Returns the fullUser-Agentheader value.Returns the user agent suffix.
-
Method Details
-
builder
Starts a builder with the SPEC defaults.- Parameters:
baseUrl- endpoint base URL (httporhttps)- Returns:
- a new builder
-
baseUrl
Returns the base URL.- Returns:
- the base URL
-
connectTimeout
Returns the connection setup timeout.- Returns:
- the connect timeout
-
requestTimeout
Returns the per-attempt timeout.- Returns:
- the request timeout
-
totalTimeout
Returns the budget of a whole call including retries and backoff.- Returns:
- the total timeout
-
retry
Returns the retry policy.- Returns:
- the policy
-
tls
Returns the TLS options.- Returns:
- the options
-
proxy
Returns the proxy URL.- Returns:
- the proxy, or empty (environment proxies are ignored)
-
headers
Returns the extra headers sent with every request.- Returns:
- immutable header map
-
userAgentSuffix
Returns the user agent suffix.- Returns:
- the suffix, or empty
-
userAgent
Returns the fullUser-Agentheader value.- Returns:
- the user agent
-
hooks
Returns the hooks.- Returns:
- the hooks,
Hooks.NONEby default
-
logger
Returns the logger.- Returns:
- the logger,
Logger.NOOPby default
-
knownSecrets
Returns the secret values removed from every error message, hook and log line.- Returns:
- the current known secrets
-
clock
Returns the clock used forRetry-Afterdates.- Returns:
- the clock
-
retryAfterHeaders
Returns the vendor headers read as a retry hint when a 429 or 503 response has noRetry-After(for exampleX-RateLimit-Reset), parsed withRetryPolicy.parseRateLimitReset(java.lang.String, java.time.Instant).- Returns:
- header names in lookup order (empty by default)
-
errorMapper
Returns the service error mapper.- Returns:
- the mapper (
ErrorMapper.NONEby default)
-