| Package | Description |
|---|---|
| com.google.apphosting.api |
Provides access to the ApiProxy, which dispatches API calls to backend services.
|
| Modifier and Type | Method and Description |
|---|---|
CloudTraceContext |
CloudTraceContext.createChildContext()
Creates a child context of the current context.
|
static @Nullable CloudTraceContext |
CloudTrace.getCurrentContext(ApiProxy.Environment env)
Returns the current trace context for the given environment and the current thread.
|
protected abstract @Nullable CloudTraceContext |
CloudTrace.getDefaultContext()
Returns the default context when a thread-specific one doesn't exist.
|
static @Nullable CloudTraceContext |
CloudTrace.startChildSpan(ApiProxy.Environment env,
CloudTraceContext context,
String name)
Starts a new span as the child of the given context.
|
protected abstract @Nullable CloudTraceContext |
CloudTrace.startChildSpanImpl(CloudTraceContext context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
CloudTrace.endSpan(ApiProxy.Environment env,
CloudTraceContext context,
CloudTraceContext parent)
Ends the span for the given context.
|
protected abstract void |
CloudTrace.endSpanImpl(CloudTraceContext context) |
static void |
CloudTrace.setCurrentContext(ApiProxy.Environment env,
@Nullable CloudTraceContext context)
Sets the current trace context for the current environment and the current thread.
|
static void |
CloudTrace.setLabel(ApiProxy.Environment env,
CloudTraceContext context,
String key,
String value)
Sets a key:value label on the span for the given context.
|
protected abstract void |
CloudTrace.setLabelImpl(CloudTraceContext context,
String key,
String value) |
static @Nullable CloudTraceContext |
CloudTrace.startChildSpan(ApiProxy.Environment env,
CloudTraceContext context,
String name)
Starts a new span as the child of the given context.
|
protected abstract @Nullable CloudTraceContext |
CloudTrace.startChildSpanImpl(CloudTraceContext context,
String name) |
Copyright © 2022. All rights reserved.