Failed to export logs. The request could not be executed. Full error message: Required SETTINGS preface not received #7398
debashish-github
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am working on moving our spring boot application using Logback/Log4j as the logging framework to opentelemetry . I am able to successfully transmit all our application logs in OTLP format with minimal code changes at the GlobalLogger/SDKLogger level and export these logs to OTLP Collector .
Now I have custom OTLP Collector running as a docker container on my local machine.
I am using the following code to connect to the collector
OtlpGrpcLogRecordExporter logRecordExporter = OtlpGrpcLogRecordExporter.builder().setEndpoint("http://localhost:4317").build();
//LogRecordExporter logRecordExporter = SystemOutLogRecordExporter.create();
SdkLoggerProvider sdkLoggerProvider =
SdkLoggerProvider.builder().addLogRecordProcessor(
SimpleLogRecordProcessor.create(logRecordExporter)
).setResource(resource).build();
But I keep getting the error - i.o.e.internal.grpc.OkHttpGrpcExporter [MsgID=] : Failed to export logs. The request could not be executed. Full error message: Required SETTINGS preface not received
Is there anything else I need to setup or configure to be able to send logs from my application to the collector?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions