Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 authored and marcingrzejszczak committed Jun 28, 2023
1 parent e930da9 commit 147d374
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class HttpClientContext extends RequestReplySenderContext<RequestHeadersBu
private final HttpRequest httpRequest;

HttpClientContext(ClientRequestContext clientRequestContext, RequestHeadersBuilder carrier,
HttpRequest httpRequest) {
HttpRequest httpRequest) {
super(RequestHeadersBuilder::add);
this.clientRequestContext = clientRequestContext;
this.httpRequest = httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ private MicrometerObservationClient(HttpClient delegate, ObservationRegistry obs
/**
* Creates a new instance.
*/
private MicrometerObservationClient(HttpClient delegate,
ObservationRegistry observationRegistry,
@Nullable HttpClientObservationConvention
httpClientObservationConvention) {
private MicrometerObservationClient(
HttpClient delegate, ObservationRegistry observationRegistry,
@Nullable HttpClientObservationConvention httpClientObservationConvention) {
super(delegate);
this.observationRegistry = observationRegistry;
this.httpClientObservationConvention = httpClientObservationConvention;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

import io.micrometer.observation.transport.RequestReplyReceiverContext;

/**
* TODO: Add me.
*/
final class HttpServerContext extends RequestReplyReceiverContext<HttpRequest, RequestLog> {

private final ServiceRequestContext serviceRequestContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,99 +45,69 @@ public Event[] getEvents() {

enum HighCardinalityKeys implements KeyName {

/**
* TODO: Add me.
*/
HTTP_PATH {
@Override
public String asString() {
return "http.path";
}
},

/**
* TODO: Add me.
*/
HTTP_METHOD {
@Override
public String asString() {
return "http.method";
}
},

/**
* TODO: Add me.
*/
HTTP_HOST {
@Override
public String asString() {
return "http.host";
}
},

/**
* TODO: Add me.
*/
HTTP_URL {
@Override
public String asString() {
return "http.url";
}
},

/**
* TODO: Add me.
*/
HTTP_PROTOCOL {
@Override
public String asString() {
return "http.protocol";
}
},

/**
* TODO: Add me.
*/
HTTP_SERIALIZATION_FORMAT {
@Override
public String asString() {
return "http.serfmt";
}
},

/**
* TODO: Add me.
*/
ADDRESS_REMOTE {
@Override
public String asString() {
return "address.remote";
}
},

/**
* TODO: Add me.
*/
ADDRESS_LOCAL {
@Override
public String asString() {
return "address.local";
}
},

/**
* TODO: Add me.
*/
STATUS_CODE {
@Override
public String asString() {
return "http.status_code";
}
},

/**
* TODO: Add me.
*/
ERROR {
@Override
public String asString() {
Expand Down

0 comments on commit 147d374

Please sign in to comment.