Skip to content

Commit dcbee66

Browse files
TophrC-dddevflow.devflow-routing-intake
andauthored
Introduces the api-management inferred proxy spans to Azure (#11804)
adding implementation for azure apim Fixing formatting Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>
1 parent 015a24f commit dcbee66

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

internal-api/src/main/java/datadog/trace/api/gateway/InferredProxySpan.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class InferredProxySpan implements ImplicitContextKeyed {
4747
SUPPORTED_PROXIES = new HashMap<>();
4848
SUPPORTED_PROXIES.put("aws-apigateway", "aws.apigateway");
4949
SUPPORTED_PROXIES.put("aws-httpapi", "aws.httpapi");
50+
SUPPORTED_PROXIES.put("azure-apim", "azure.apim");
5051
}
5152

5253
private final Map<String, String> headers;

internal-api/src/test/java/datadog/trace/api/gateway/InferredProxySpanTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ void testSupportedProxySystems(String proxySystem, String expectedSpanName) {
241241
}
242242

243243
static Stream<Arguments> supportedProxySystems() {
244-
return Stream.of(of("aws-apigateway", "aws.apigateway"), of("aws-httpapi", "aws.httpapi"));
244+
return Stream.of(
245+
of("aws-apigateway", "aws.apigateway"),
246+
of("aws-httpapi", "aws.httpapi"),
247+
of("azure-apim", "azure.apim"));
245248
}
246249

247250
@Test

0 commit comments

Comments
 (0)