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

DAPR configuration #2502

Closed
BartNetJS opened this issue May 8, 2023 · 4 comments
Closed

DAPR configuration #2502

BartNetJS opened this issue May 8, 2023 · 4 comments
Assignees
Labels
bug Something isn't working triage requires triage user-request

Comments

@BartNetJS
Copy link

I try to setup my dapr environment to write traces to tracetest.
But in the logs i got:

Post "http://tracetest.tracetest.svc.cluster.local:4317/v1/traces": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00"

My dapr config file:

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: dapr-config
namespace: {{ .Values.namespace }}
spec:
tracing:
samplingRate: "1"
zipkin:
endpointAddress: "http://zipkin:9411/api/v2/spans"
otel:
endpointAddress: "tracetest.tracetest.svc.cluster.local:4317"
protocol: "http"
isSecure: false

It is not clear to me what I'm configuring wrong.

I also checked the OpenTelemetry config section in tracetest and tried a 'test Connection', but then i got:

"No Automated Test
Since the OpenTelemetry Collector sends traces to Tracetest, there is no automated test. Once you have configured your OpenTelemetry Collector to send Tracetest spans to Tracetest, try running a Tracetest test against your application under test."

@BartNetJS BartNetJS added bug Something isn't working triage requires triage labels May 8, 2023
@mathnogueira
Copy link
Member

Hey @BartNetJS. I'll check the issue this afternoon. Thanks for reporting it!

@mathnogueira mathnogueira self-assigned this May 8, 2023
@mathnogueira
Copy link
Member

mathnogueira commented May 8, 2023

Oh I think what's happening. You are using the wrong port. 4317 is the gRPC port. You should point to port 4318 instead.

So you are getting a gRPC response instead of a HTTP response and this is breaking the integration. Try using the grpc protocol or change the port you are using in your spec.tracing.otel.endpointAddress to 4318:

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
    name: dapr-config
namespace: {{ .Values.namespace }}
spec:
    tracing:
        samplingRate: "1"
        zipkin:
            endpointAddress: "http://zipkin:9411/api/v2/spans"
        otel:
            endpointAddress: "tracetest.tracetest.svc.cluster.local:4318"
            protocol: "http"
            isSecure: false

@BartNetJS let me know if that works!

@BartNetJS
Copy link
Author

@mathnogueira that was indeed the issue
Thanks a lot!

@mathnogueira
Copy link
Member

No problem! I'm glad that worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage requires triage user-request
Projects
None yet
Development

No branches or pull requests

2 participants