You will send the data to Dynatrace using rest API (/api/v2/otlp/v1/traces).
Thank you for the quick response. But the thing is my system(WSO2 API manager) instruments the traces using OpenTracing. I have tried your solution and it is not working without OneAgent.
OpenTracing is now deprecated and OpenTelemetry is the new standard. I would highly recommend migrating to OpenTelemetry: https://opentelemetry.io/docs/migration/opentracing/
An OpenTracing to OTEL shim is available.