I have an AWS Lambda function that I am developing in Java.
I am using the pacakge io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk
to set up telemetry and I use it like this:
public static OpenTelemetrySdk autoconfiguredSdk() {
OpenTelemetrySdk openTelemetrySdk = AutoConfiguredOpenTelemetrySdk.initialize().getOpenTelemetrySdk();
return openTelemetrySdk;
}
With this I can create my own spans and the SDK will be configured using the standard env vars for OpenTelemetry. When using the SpringBoot starter there is a bunch of autoinstrumentation (for http, aws, dbs, etc.) that works out of the box and I don't have to create spans for those actions, it's the SDK that takes care of it.
How can I achieve that same thing when not using the OpenTelemetry SpringBoot Starter?