Replies: 2 comments 3 replies
-
i think the issue here is because the example file you reference is in the format for the recently released configuration v0.3.0, which had some breaking changes. This new version of configuration was only just recently merged into the sdk a few days ago, and is not yet available in the java agent. I imagine that will land soon. In the meantime, if you want to continue with your example, I believe you can make a few modifications to your configuration file and it should work. Change the attributes block from:
to
And then for each occurrence of a headers array input, change from:
to
or
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @jaydeluca
file_format: "0.1"
resource:
attributes:
service.name: agent-example-app
logger_provider:
processors:
- batch:
exporter:
otlp:
endpoint: http://123.123.213.122:4317
protocol: http/protobuf
tracer_provider:
processors:
- batch:
exporter:
otlp:
endpoint: http://123.123.213.122:4317
protocol: http/protobuf
meter_provider:
readers:
- periodic:
exporter:
otlp:
endpoint: http://123.123.213.122:4317
protocol: http/protobuf
# Example of how to use view to drop a metric which isn't needed.
# This configuration is not available with the environment variable configuration scheme.
# NOTE: most users will want jvm.memory.limit metric and should remove this view.
views:
- selector:
instrument_name: jvm.memory.limit
stream:
aggregation:
drop: While using the latest agent
Now if I use an older version of the agent
Another thing I have noticed is when switching the env variable (using version
The error changes but the agent still tries to connect to default values
Is the latest agent not compatible with any of formats? |
Beta Was this translation helpful? Give feedback.
-
I have been trying to use the SDK Configuration file but the agent refuses to start and its unable to read the resource attributes. I am using the same example configuration file available here and the following repo for demo purposes.
The only env variable I am using is
OTEL_EXPERIMENTAL_CONFIG_FILE
which points to the config file.Beta Was this translation helpful? Give feedback.
All reactions