Uses of Class
com.google.cloud.logging.Context.Builder
Packages that use Context.Builder
Package
Description
A client for Cloud Logging - Real-time log management and analysis.
-
Uses of Context.Builder in com.google.cloud.logging
Methods in com.google.cloud.logging that return Context.BuilderModifier and TypeMethodDescriptionContext.Builder.loadCloudTraceContext(String cloudTrace) Sets the trace id, span id and trace sampled flag values by parsing the string which represents xCloud Trace Context.Context.Builder.loadOpenTelemetryContext()Sets the trace id, span id and trace sampled flag values by parsing detected OpenTelemetry span context.Context.Builder.loadW3CTraceParentContext(String traceParent) Sets the trace id, span id and trace sampled flag values by parsing the string which represents the standard W3C trace context propagation header.static Context.BuilderContext.newBuilder()Returns a builder forHttpRequestobjects.Context.Builder.setReferer(String referer) Sets the referer URL of the request, as defined in HTTP/1.1 Header Field Definitions.Context.Builder.setRemoteIp(String remoteIp) Sets the IP address (IPv4 or IPv6) of the client that issued the HTTP request.Context.Builder.setRequest(HttpRequest request) Sets the HTTP request.Context.Builder.setRequestMethod(HttpRequest.RequestMethod method) Sets the HTTP request method.Context.Builder.setRequestUrl(String url) Context.Builder.setServerIp(String serverIp) Sets the IP address (IPv4 or IPv6) of the origin server that the request was sent to.Sets the string as a span id value.Context.Builder.setTraceId(String traceId) Sets the string as a trace id value.Context.Builder.setTraceSampled(boolean traceSampled) Sets the boolean as trace sampled flag.Context.toBuilder()Returns a builder for this object.