I installed oneagent, and I enabled,
From the Dynatrace menu, go to Settings > Preferences > OneAgent features
SET OTEL_RESOURCE_ATTRIBUTES="service.name=pet-quickstart,service.version=1.0.1"
SET OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
SET OTEL_METRICS_EXPORTER=none
For auto instruementation of java application (distributed trace)
The following command is not generating/exporting traces to dynatrace
C:>java -javaagent:./opentelemetry-javaagent.jar -Dotel.service.name=PET-dyna -jar target/petclinic.jar