public class Context extends Object
Resource and InstrumentationScope| Constructor and Description |
|---|
Context(io.opentelemetry.proto.resource.v1.Resource resource,
String domain) |
Context(io.opentelemetry.proto.resource.v1.Resource resource,
String domain,
boolean debugEnabled) |
Context(String domain) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDomain() |
io.opentelemetry.proto.common.v1.InstrumentationScope |
getInstrumentationScope()
Get the
InstrumentationScope in this Context. |
io.opentelemetry.proto.resource.v1.Resource |
getResource()
Get the
Resource in this Context. |
boolean |
isDebugEnabled() |
public Context(String domain)
public Context(io.opentelemetry.proto.resource.v1.Resource resource,
String domain)
public Context(io.opentelemetry.proto.resource.v1.Resource resource,
String domain,
boolean debugEnabled)
public io.opentelemetry.proto.resource.v1.Resource getResource()
Resource in this Context.
The Resource represents the entity for which telemetry is being collected.
The buildMetricsData() and buildRequest() methods can be used to construct
OTLP messages with the Resource and InstrumentationScope from this context.
public io.opentelemetry.proto.common.v1.InstrumentationScope getInstrumentationScope()
InstrumentationScope in this Context.
The InstrumentationScope represents the library or framework that is
instrumenting the telemetry data.
The buildMetricsData() and buildRequest() methods can be used to construct
OTLP messages with the Resource and InstrumentationScope from this context.
public boolean isDebugEnabled()
public String getDomain()