File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
opamp-client/src/main/java/io/opentelemetry/opamp/client/internal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77
88import com .github .f4b6a3 .uuid .UuidCreator ;
99import com .google .errorprone .annotations .CanIgnoreReturnValue ;
10+ import io .opentelemetry .opamp .client .internal .connectivity .http .OkHttpSender ;
1011import io .opentelemetry .opamp .client .internal .impl .OpampClientImpl ;
1112import io .opentelemetry .opamp .client .internal .impl .OpampClientState ;
1213import io .opentelemetry .opamp .client .internal .request .service .HttpRequestService ;
@@ -37,9 +38,10 @@ public final class OpampClientBuilder {
3738 private final Map <String , AnyValue > identifyingAttributes = new HashMap <>();
3839 private final Map <String , AnyValue > nonIdentifyingAttributes = new HashMap <>();
3940 private long capabilities = 0 ;
41+ private RequestService service =
42+ HttpRequestService .create (OkHttpSender .create ("http://localhost:4320/v1/opamp" ));
4043 @ Nullable private byte [] instanceUid ;
4144 @ Nullable private State .EffectiveConfig effectiveConfigState ;
42- @ Nullable private RequestService service ;
4345
4446 OpampClientBuilder () {}
4547
You can’t perform that action at this time.
0 commit comments