Uses of Class
com.google.apphosting.api.CloudTraceContext
Packages that use CloudTraceContext
Package
Description
Provides access to the ApiProxy, which dispatches API calls to backend services.
-
Uses of CloudTraceContext in com.google.apphosting.api
Methods in com.google.apphosting.api that return CloudTraceContextModifier and TypeMethodDescriptionCloudTraceContext.createChildContext()Creates a child context of the current context.static @Nullable CloudTraceContextCloudTrace.getCurrentContext(ApiProxy.Environment env) Returns the current trace context for the given environment and the current thread.protected abstract @Nullable CloudTraceContextCloudTrace.getDefaultContext()Returns the default context when a thread-specific one doesn't exist.static @Nullable CloudTraceContextCloudTrace.startChildSpan(ApiProxy.Environment env, CloudTraceContext context, String name) Starts a new span as the child of the given context.protected abstract @Nullable CloudTraceContextCloudTrace.startChildSpanImpl(CloudTraceContext context, String name) Methods in com.google.apphosting.api with parameters of type CloudTraceContextModifier and TypeMethodDescriptionstatic voidCloudTrace.endSpan(ApiProxy.Environment env, CloudTraceContext context, CloudTraceContext parent) Ends the span for the given context.protected abstract voidCloudTrace.endSpanImpl(CloudTraceContext context) static voidCloudTrace.setCurrentContext(ApiProxy.Environment env, @Nullable CloudTraceContext context) Sets the current trace context for the current environment and the current thread.static voidCloudTrace.setLabel(ApiProxy.Environment env, CloudTraceContext context, String key, String value) Sets a key:value label on the span for the given context.protected abstract voidCloudTrace.setLabelImpl(CloudTraceContext context, String key, String value) static @Nullable CloudTraceContextCloudTrace.startChildSpan(ApiProxy.Environment env, CloudTraceContext context, String name) Starts a new span as the child of the given context.protected abstract @Nullable CloudTraceContextCloudTrace.startChildSpanImpl(CloudTraceContext context, String name)