Im having working otel collector with local springboot app using local profile
it can send logs metrics traces into grafana cloud using below single otlp endpoint
but doesnt export logs when using logback-spring.xml in springboot app profile as our console logs are redirected to aws cloudwatch
exporters:
otlphttp:
auth:
authenticator: basicauth/otlp
endpoint: https://otlp-gateway-prod-us-east-0.grafana.net/otlp
logging:
verbosity: detailed
"name": "OTEL_EXPORTER_OTLP_ENDPOINT",
"value": "http://collector:4317"
using port 4317 traces,metrics are going into grafana cloud except logs
if using port 4318 none are going into grafana cloud
if any issues sending logs over 4317 using single otlp endpoint
otel.conf
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
logback-spring.xml
collector
4318
io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export spans. Server responded with gRPC status code 2. Error message: FRAME_SIZE_ERROR: 4740180
[OkHttp http://collector:4318/…] WARN io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export spans. Server responded with gRPC status code 2. Error message:
[OkHttp http://collector:4318/…] WARN io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export metrics. Server responded with gRPC status code 2. Error message: FRAME_SIZE_ERROR: 4740180
io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export metrics. Server responded with gRPC status code 2. Error message: Connection reset by peer