Class ProcessResource
java.lang.Object
io.opentelemetry.instrumentation.resources.ProcessResource
Factory of a
Resource which provides information about the current running process.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.resources.Resourcecreate()Returns aResourcewhich provides information about the current running process.static io.opentelemetry.sdk.resources.Resourcecreate(boolean emitCommandAttributes) Returns aResourcewhich provides information about the current running process.static io.opentelemetry.sdk.resources.Resourceget()Deprecated.
-
Method Details
-
get
Deprecated.Usecreate(true)to retain the current behavior, orcreate()to omit the potentially sensitiveprocess.command_argsandprocess.command_lineattributes. Will be removed in 3.0.Returns a factory for aResourcewhich provides information about the current running process, including the command-line attributes. -
create
public static io.opentelemetry.sdk.resources.Resource create()Returns aResourcewhich provides information about the current running process. -
create
public static io.opentelemetry.sdk.resources.Resource create(boolean emitCommandAttributes) Returns aResourcewhich provides information about the current running process.Warning: command-line resource attributes may contain sensitive information. Only set
emitCommandAttributestotruewhen this risk is acceptable.
-
create(true)to retain the current behavior, orcreate()to omit the potentially sensitiveprocess.command_argsandprocess.command_lineattributes.