File tree 5 files changed +7
-5
lines changed
main/java/org/hypertrace/agent/core/config
java/org/hypertrace/agent/core/config
smoke-tests/src/test/resources
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ private HypertraceConfig() {}
56
56
private static volatile AgentConfig agentConfig ;
57
57
58
58
static final String DEFAULT_SERVICE_NAME = "unknown" ;
59
- static final String DEFAULT_REPORTING_ENDPOINT = "http://localhost:4317 " ;
59
+ static final String DEFAULT_REPORTING_ENDPOINT = "http://localhost:9411/api/v2/spans " ;
60
60
static final String DEFAULT_OPA_ENDPOINT = "http://opa.traceableai:8181/" ;
61
61
static final int DEFAULT_OPA_POLL_PERIOD_SECONDS = 30 ;
62
62
// 128 KiB
@@ -189,7 +189,7 @@ private static Reporting.Builder applyReportingDefaults(Reporting.Builder builde
189
189
builder .setEndpoint (StringValue .newBuilder ().setValue (DEFAULT_REPORTING_ENDPOINT ).build ());
190
190
}
191
191
if (builder .getTraceReporterType ().equals (Config .TraceReporterType .UNSPECIFIED )) {
192
- builder .setTraceReporterType (Config .TraceReporterType .OTLP );
192
+ builder .setTraceReporterType (Config .TraceReporterType .ZIPKIN );
193
193
}
194
194
Builder opaBuilder = applyOpaDefaults (builder .getOpa ().toBuilder ());
195
195
builder .setOpa (opaBuilder );
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public void defaultValues() throws IOException {
40
40
Assertions .assertTrue (agentConfig .getEnabled ().getValue ());
41
41
Assertions .assertEquals ("unknown" , agentConfig .getServiceName ().getValue ());
42
42
Assertions .assertEquals (
43
- TraceReporterType .OTLP , agentConfig .getReporting ().getTraceReporterType ());
43
+ TraceReporterType .ZIPKIN , agentConfig .getReporting ().getTraceReporterType ());
44
44
Assertions .assertEquals (
45
45
HypertraceConfig .DEFAULT_REPORTING_ENDPOINT ,
46
46
agentConfig .getReporting ().getEndpoint ().getValue ());
@@ -104,7 +104,7 @@ private void assertConfig(AgentConfig agentConfig) {
104
104
Assertions .assertEquals (
105
105
Arrays .asList (PropagationFormat .B3 ), agentConfig .getPropagationFormatsList ());
106
106
Assertions .assertEquals (
107
- TraceReporterType .ZIPKIN , agentConfig .getReporting ().getTraceReporterType ());
107
+ TraceReporterType .OTLP , agentConfig .getReporting ().getTraceReporterType ());
108
108
Assertions .assertEquals (
109
109
"http://localhost:9411" , agentConfig .getReporting ().getEndpoint ().getValue ());
110
110
Assertions .assertEquals (true , agentConfig .getReporting ().getSecure ().getValue ());
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ propagationFormats:
6
6
reporting :
7
7
endpoint : http://localhost:9411
8
8
secure : true
9
- trace_reporter_type : ZIPKIN
9
+ trace_reporter_type : OTLP
10
10
opa :
11
11
endpoint : http://opa.localhost:8181/
12
12
pollPeriodSeconds : 12
Original file line number Diff line number Diff line change 1
1
service_name : app_under_test
2
2
reporting :
3
3
endpoint : http://localhost:4317
4
+ trace_reporter_type : OTLP
4
5
secure : true
5
6
data_capture :
6
7
http_headers :
Original file line number Diff line number Diff line change 1
1
serviceName : app_under_test
2
2
reporting :
3
3
endpoint : http://localhost:4317
4
+ trace_reporter_type : OTLP
You can’t perform that action at this time.
0 commit comments