A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://opentelemetry.io/docs/zero-code/java/agent/configuration/ below:

Configuration | OpenTelemetry

Configuration

For more information

This page describes the various ways in which configuration can be supplied to the Java agent. For information on the configuration options themselves, see Configure the SDK.

Agent Configuration

The agent can consume configuration from one or more of the following sources (ordered from highest to lowest priority):

Configuring with Environment Variables

In certain environments, configuring settings through environment variables is often preferred. Any setting that can be configured using a system property can also be set using an environment variable. While many of the settings below provide examples for both formats, for those that do not, use the following steps to determine the correct name mapping for the desired system property:

For example otel.instrumentation.common.default-enabled would convert to OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED.

Configuration file

You can provide a path to an agent configuration file by setting the following property:

System property: otel.javaagent.configuration-fileEnvironment variable: OTEL_JAVAAGENT_CONFIGURATION_FILE

Description: Path to a valid Java properties file which contains the agent configuration.

Extensions

You can enable extensions by setting the following property:

System property: otel.javaagent.extensionsEnvironment variable: OTEL_JAVAAGENT_EXTENSIONS

Description: Path to an extension jar file or folder, containing jar files. If pointing to a folder, every jar file in that folder will be treated as separate, independent extension.

Java agent logging output

The agent’s logging output can be configured by setting the following property:

System property: otel.javaagent.loggingEnvironment variable: OTEL_JAVAAGENT_LOGGING

Description: The Java agent logging mode. The following 3 modes are supported:

SDK Configuration

The SDK’s autoconfiguration module is used for basic configuration of the agent. Read the docs to find settings such as configuring export or sampling.

Important

Unlike the SDK autoconfiguration, versions 2.0+ of the Java agent and OpenTelemetry Spring Boot starter use http/protobuf as the default protocol, not grpc.

Enable Resource Providers that are disabled by default

In addition to the resource configuration from the SDK autoconfiguration, you can enable additional resource providers that are disabled by default:

System property: otel.resource.providers.aws.enabledEnvironment variable: OTEL_RESOURCE_PROVIDERS_AWS_ENABLED

Default: false
Description: Enables the AWS Resource Provider.

System property: otel.resource.providers.gcp.enabledEnvironment variable: OTEL_RESOURCE_PROVIDERS_GCP_ENABLED

Default: false
Description: Enables the GCP Resource Provider.

System property: otel.resource.providers.azure.enabledEnvironment variable: OTEL_RESOURCE_PROVIDERS_AZURE_ENABLED

Default: false
Description: Enables the Azure Resource Provider.

Feedback

Was this page helpful?

Thank you. Your feedback is appreciated!

Please let us know how we can improve this page. Your feedback is appreciated!



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4