Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javaagent collector port 4318 #367

Closed
systems1 opened this issue Mar 29, 2024 · 2 comments
Closed

javaagent collector port 4318 #367

systems1 opened this issue Mar 29, 2024 · 2 comments
Labels
needs author feedback Waiting for additional feedback from the author Stale

Comments

@systems1
Copy link

systems1 commented Mar 29, 2024

past java example code here in examples had collector default port 4317
im using collector-contrib and can get metrics traces (4317) but not logs
using logback-spring.xml

4317 is grpc
4318 is http

if logs cannot be exported over 4317 ? as its changed from past example javaagent 4317 to 4318
if my config is updated from 4317 to 4318 ,all traces metrics logs are failing to connect collector at http://collector:4318

otel.conf
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318

logback-spring.xml

  <springProfile name="dev, staging, prod">
    <appender name="otlp-collector" class="ch.qos.logback.classic.net.SocketAppender">
      <remoteHost>collector</remoteHost>
      <port>4318</port>
    </appender>
  </springProfile>

[otel.javaagent 2024-03-27 14:44:38:498 +0000] [OkHttp http://collector:4318/...] WARN io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export spans. Server responded with gRPC status code 2. Error message: FRAME_SIZE_ERROR: 4740180

[otel.javaagent 2024-03-27 14:44:16:406 +0000] [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

[otel.javaagent 2024-03-27 14:39:46:727 +0000] [OkHttp http://collector:4318/...] WARN io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export spans. Server responded with gRPC status code 2. Error message:

message:[otel.javaagent 2024-03-27 14:51:16:426 +0000] [OkHttp http://collector:4318/...] WARN io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export metrics. Server responded with gRPC status code 2. Error message: Broken pipe logStream:b0b76c317d85aa312d6779fd4a3db399f009c5b6e1512f8be0dc6dbf639c0df5 @timestamp:Mar 27, 2024 @ 09:51:16.427 @Version:1 id:38168864449669339858687673274219390502717780978530844672

io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export metrics. Server responded with gRPC status code 2. Error message: Connection reset by peer

@jaydeluca
Copy link
Member

jaydeluca commented Sep 19, 2024

do you have metrics and logs pipelines configured in your collector config?

For example:

service:
  extensions: [pprof, zpages, health_check]
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [ zipkin ]
    metrics:
      receivers: [otlp]
      processors: [ batch ]
      exporters: [ logging, prometheus ]
    logs: 
      receivers: [ otlp ]
      processors: [ batch ]
      exporters: [ otlp ]

@trask trask added the needs author feedback Waiting for additional feedback from the author label Sep 23, 2024
Copy link
Contributor

This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@github-actions github-actions bot added the Stale label Sep 30, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs author feedback Waiting for additional feedback from the author Stale
Projects
None yet
Development

No branches or pull requests

3 participants