| Package | Description |
|---|---|
| com.google.apphosting.api |
Provides access to the ApiProxy, which dispatches API calls to backend services.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ApiProxy.Delegate<E extends ApiProxy.Environment>
This interface can be used to provide a class that actually
implements API calls.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ApiProxy.EnvironmentWithTrace
A specialization of Environment with call-tracing metadata.
|
| Modifier and Type | Method and Description |
|---|---|
static ApiProxy.Environment |
ApiProxy.getCurrentEnvironment()
Gets the environment associated with this thread.
|
ApiProxy.Environment |
ApiProxy.EnvironmentFactory.newEnvironment()
Creates a new Environment object to use if no thread local Environment is set.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CloudTrace.endSpan(ApiProxy.Environment env,
CloudTraceContext context,
CloudTraceContext parent)
Ends the span for the given context.
|
static ApiStats |
ApiStats.get(ApiProxy.Environment env)
For a given environment, return the corresponding ApiStats object.
|
static @Nullable CloudTraceContext |
CloudTrace.getCurrentContext(ApiProxy.Environment env)
Returns the current trace context for the given environment and the current thread.
|
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 |
ApiProxy.setEnvironmentForCurrentThread(ApiProxy.Environment environment)
Sets an environment for 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.
|
static @Nullable CloudTraceContext |
CloudTrace.startChildSpan(ApiProxy.Environment env,
CloudTraceContext context,
String name)
Starts a new span as the child of the given context.
|
| Constructor and Description |
|---|
ApiStats(ApiProxy.Environment env)
Creates a new ApiStats object and binds it to a given Environment.
|
CloudTrace(ApiProxy.Environment env)
Creates a new CloudTrace object and binds it to a given Environment.
|
Copyright © 2022. All rights reserved.