3
3
import static datadog .trace .api .gateway .Events .EVENTS ;
4
4
import static datadog .trace .bootstrap .instrumentation .decorator .http .HttpResourceDecorator .HTTP_RESOURCE_DECORATOR ;
5
5
6
+ import datadog .context .Context ;
6
7
import datadog .trace .api .Config ;
7
8
import datadog .trace .api .cache .DDCache ;
8
9
import datadog .trace .api .cache .DDCaches ;
11
12
import datadog .trace .api .gateway .RequestContextSlot ;
12
13
import datadog .trace .bootstrap .instrumentation .api .AgentPropagation ;
13
14
import datadog .trace .bootstrap .instrumentation .api .AgentSpan ;
14
- import datadog .trace .bootstrap .instrumentation .api .AgentSpanContext ;
15
15
import datadog .trace .bootstrap .instrumentation .api .ResourceNamePriorities ;
16
16
import datadog .trace .bootstrap .instrumentation .api .URIDataAdapter ;
17
17
import datadog .trace .bootstrap .instrumentation .api .URIUtils ;
36
36
import scala .Option ;
37
37
38
38
public class PlayHttpServerDecorator
39
- extends HttpServerDecorator <Request , Request , Result , Headers > {
39
+ extends HttpServerDecorator <Request <?> , Request <?> , Result , Headers > {
40
40
private static final Logger LOG = LoggerFactory .getLogger (PlayHttpServerDecorator .class );
41
41
public static final boolean REPORT_HTTP_STATUS = Config .get ().getPlayReportHttpStatus ();
42
42
public static final CharSequence PLAY_REQUEST = UTF8BytesString .create ("play.request" );
@@ -96,17 +96,17 @@ public CharSequence spanName() {
96
96
}
97
97
98
98
@ Override
99
- protected String method (final Request httpRequest ) {
99
+ protected String method (final Request <?> httpRequest ) {
100
100
return httpRequest .method ();
101
101
}
102
102
103
103
@ Override
104
- protected URIDataAdapter url (final Request request ) {
104
+ protected URIDataAdapter url (final Request <?> request ) {
105
105
return new RequestURIDataAdapter (request );
106
106
}
107
107
108
108
@ Override
109
- protected String peerHostIP (final Request request ) {
109
+ protected String peerHostIP (final Request <?> request ) {
110
110
RemoteConnection connection = request .connection ();
111
111
if (connection instanceof RemoteConnectionWithRawAddress ) {
112
112
return ((RemoteConnectionWithRawAddress ) connection ).rawRemoteAddressString ();
@@ -116,7 +116,7 @@ protected String peerHostIP(final Request request) {
116
116
}
117
117
118
118
@ Override
119
- protected int peerPort (final Request request ) {
119
+ protected int peerPort (final Request <?> request ) {
120
120
return 0 ;
121
121
}
122
122
@@ -128,9 +128,9 @@ protected int status(final Result httpResponse) {
128
128
@ Override
129
129
public AgentSpan onRequest (
130
130
final AgentSpan span ,
131
- final Request connection ,
132
- final Request request ,
133
- AgentSpanContext . Extracted context ) {
131
+ final Request <?> connection ,
132
+ final Request <?> request ,
133
+ final Context context ) {
134
134
super .onRequest (span , connection , request , context );
135
135
if (request != null ) {
136
136
// more about routes here:
0 commit comments