chore: remove jaeger exporter due to official deprecation (#5361)

Signed-off-by: kevin <wanjunfeng@gmail.com>
This commit is contained in:
Kevin Wan
2025-12-25 23:03:14 +08:00
committed by GitHub
parent fcec494ea8
commit 4b4751e76c
9 changed files with 36 additions and 81 deletions

View File

@@ -21,10 +21,11 @@ import (
func TestOtelHandler(t *testing.T) {
ztrace.StartAgent(ztrace.Config{
Name: "go-zero-test",
Endpoint: "http://localhost:14268/api/traces",
Batcher: "jaeger",
Sampler: 1.0,
Name: "go-zero-test",
Endpoint: "http://localhost:14268",
OtlpHttpPath: "/v1/traces",
Batcher: "otlphttp",
Sampler: 1.0,
})
defer ztrace.StopAgent()
@@ -84,10 +85,11 @@ func TestTraceHandler(t *testing.T) {
func TestDontTracingSpan(t *testing.T) {
ztrace.StartAgent(ztrace.Config{
Name: "go-zero-test",
Endpoint: "http://localhost:14268/api/traces",
Batcher: "jaeger",
Sampler: 1.0,
Name: "go-zero-test",
Endpoint: "http://localhost:14268",
OtlpHttpPath: "/v1/traces",
Batcher: "otlphttp",
Sampler: 1.0,
})
defer ztrace.StopAgent()
@@ -129,10 +131,11 @@ func TestDontTracingSpan(t *testing.T) {
func TestTraceResponseWriter(t *testing.T) {
ztrace.StartAgent(ztrace.Config{
Name: "go-zero-test",
Endpoint: "http://localhost:14268/api/traces",
Batcher: "jaeger",
Sampler: 1.0,
Name: "go-zero-test",
Endpoint: "http://localhost:14268",
OtlpHttpPath: "/v1/traces",
Batcher: "otlphttp",
Sampler: 1.0,
})
defer ztrace.StopAgent()

View File

@@ -21,10 +21,11 @@ import (
func TestDoRequest(t *testing.T) {
ztrace.StartAgent(ztrace.Config{
Name: "go-zero-test",
Endpoint: "http://localhost:14268/api/traces",
Batcher: "jaeger",
Sampler: 1.0,
Name: "go-zero-test",
Endpoint: "http://localhost:14268",
OtlpHttpPath: "/v1/traces",
Batcher: "otlphttp",
Sampler: 1.0,
})
defer ztrace.StopAgent()