public static final class ApiProxyImpl.EnvironmentImpl extends Object implements com.google.apphosting.api.ApiProxy.EnvironmentWithTrace
| Modifier and Type | Method and Description |
|---|---|
void |
addLogRecord(com.google.apphosting.api.ApiProxy.LogRecord record) |
void |
flushLogs() |
String |
getAppId() |
AppVersion |
getAppVersion() |
Map<String,Object> |
getAttributes() |
String |
getAuthDomain() |
String |
getEmail() |
String |
getModuleId() |
long |
getRemainingMillis() |
String |
getRequestNamespace()
Deprecated.
|
Optional<String> |
getSpanId()
Get the span id of the current request, which can be used to identify a span within a trace.
|
com.google.apphosting.runtime.ApiProxyImpl.TraceExceptionGenerator |
getTraceExceptionGenerator() |
Optional<String> |
getTraceId()
Get the trace id of the current request, which can be used to correlate log messages
belonging to that request.
|
TraceWriter |
getTraceWriter() |
String |
getVersionId() |
boolean |
isAdmin() |
boolean |
isLoggedIn() |
public void addLogRecord(com.google.apphosting.api.ApiProxy.LogRecord record)
public void flushLogs()
public TraceWriter getTraceWriter()
public String getAppId()
getAppId in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getModuleId()
getModuleId in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getVersionId()
getVersionId in interface com.google.apphosting.api.ApiProxy.Environmentpublic Optional<String> getTraceId()
getTraceId in interface com.google.apphosting.api.ApiProxy.EnvironmentWithTracepublic Optional<String> getSpanId()
getSpanId in interface com.google.apphosting.api.ApiProxy.EnvironmentWithTracepublic AppVersion getAppVersion()
public boolean isLoggedIn()
isLoggedIn in interface com.google.apphosting.api.ApiProxy.Environmentpublic boolean isAdmin()
isAdmin in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getEmail()
getEmail in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getAuthDomain()
getAuthDomain in interface com.google.apphosting.api.ApiProxy.Environment@Deprecated public String getRequestNamespace()
getRequestNamespace in interface com.google.apphosting.api.ApiProxy.Environmentpublic Map<String,Object> getAttributes()
getAttributes in interface com.google.apphosting.api.ApiProxy.Environmentpublic long getRemainingMillis()
getRemainingMillis in interface com.google.apphosting.api.ApiProxy.Environmentpublic com.google.apphosting.runtime.ApiProxyImpl.TraceExceptionGenerator getTraceExceptionGenerator()
Copyright © 2022. All rights reserved.