Closed afifurrohman-id closed 1 month ago
I suppose when you call NewOtlpTracerProvider, you should provide a domain name or IP address, instead of URL (remove http://).
I suppose when you call NewOtlpTracerProvider, you should provide a domain name or IP address, instead of URL (remove http://).
:point_up:
WithEndpoint sets the target endpoint (host and port) the Exporter will connect to. The provided endpoint should resemble "example.com:4317" (no scheme or path).
https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc#WithEndpoint
I suppose when you call NewOtlpTracerProvider, you should provide a domain name or IP address, instead of URL (remove http://).
☝️
WithEndpoint sets the target endpoint (host and port) the Exporter will connect to. The provided endpoint should resemble "example.com:4317" (no scheme or path).
https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc#WithEndpoint
Okay, i still have confusion here.
Does it means when we set env should prefix with http://
or https://
?
But if we pass parameter should ip or domain example.com
192.168.10.1
?
And if we set both env and parameter to that fn, otel package should use the parameter instead env?
Does it means wen we set env should prefix with
http://
orhttps://
? But if we pass parameter should ip or domainexample.com
192.168.10.1
? And if we set both env and parameter to that fn, otel package should use the parameter instead env?
If I understand these questions correctly, the answer is yes to all of them.
Description
A clear and concise description of what the bug is.
Environment
Linux 👍 #23~22.04.1-Ubuntu SMP Thu May 9 17:59:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
x86_64
go version go1.22.3 linux/amd64
v1.28.0
Steps To Reproduce
export trace endpoint env
Create init trace fn
Call trace init fn in main and add trace
}
traces export: failed to exit idle mode: invalid target address http://127.0.0.1:4317, error info: address http://127.0.0.1:4317:443: too many colons in address