use of io.opentelemetry.sdk.logs.SdkLogEmitterProvider in project opentelemetry-java-instrumentation by open-telemetry.
the class OpenTelemetryAppenderConfigTest method setupAll.
@BeforeAll
static void setupAll() {
logExporter = InMemoryLogExporter.create();
resource = Resource.getDefault();
instrumentationLibraryInfo = InstrumentationLibraryInfo.create("TestLogger", null);
SdkLogEmitterProvider logEmitterProvider = SdkLogEmitterProvider.builder().setResource(resource).addLogProcessor(SimpleLogProcessor.create(logExporter)).build();
OpenTelemetryAppender.resetSdkLogEmitterProviderForTest();
OpenTelemetryAppender.setSdkLogEmitterProvider(logEmitterProvider);
}
Aggregations