Skip to content

Add integration manifests for Java cloud serverless - #13423

Open
chojomok wants to merge 3 commits into
mohammad-islam/java-instrumentation-manifest-pilotfrom
mohammad/manifests-cloud-serverless
Open

chojomok wants to merge 3 commits into
mohammad-islam/java-instrumentation-manifest-pilotfrom
mohammad/manifests-cloud-serverless

Conversation

@chojomok

@chojomok chojomok commented Nov 12, 2026 •

Copy link
Copy Markdown

What Does This Do

Adds Manifest v1 integration manifests for AWS Lambda, AWS SDK for Java, Azure Functions, Amazon DynamoDB, Amazon EMR AWS SDK, Amazon EventBridge, and Amazon S3. This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.

Motivation

Introduces a .manifest.yaml file alongside each instrumentation in every dd-trace-* tracer repository, describing its metadata in a structured, machine-readable format. An external service can scrape these files to discover and catalog all integrations supported across all Datadog tracers without parsing language-specific source code. Each manifest represents the latest state of its instrumentation and is meant to be updated as the instrumentation changes over time.

Additional Notes

This change adds structured, machine-readable integration manifests for the Java cloud serverless:

  • AWS Lambda (aws-lambda)
  • AWS SDK for Java (aws-sdk)
  • Azure Functions (azure-functions)
  • Amazon DynamoDB (dynamodb)
  • Amazon EMR AWS SDK (emr-aws-sdk)
  • Amazon EventBridge (eventbridge)
  • Amazon S3 (s3)

This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.

Detailed field-level review evidence for every manifest is provided below.
It has the same information as the changed files, so reviewing this description is enough to understand the changes being proposed.

Integration Categories Systems Creation date
aws-lambda faas aws.lambda 2022-04-28
aws-sdk cloud_provider.client, messaging.consumer, messaging.producer aws, aws.sns, aws.sqs, aws.step_functions 2017-05-23
azure-functions faas, workflow.durable_execution azure.functions 2025-03-05
dynamodb db.client aws.dynamodb 2025-03-07
emr-aws-sdk cloud_provider.client aws 2025-01-06
eventbridge messaging.producer aws.eventbridge 2024-10-04
s3 object_store.client aws.s3 2025-01-22

Field-level review evidence

Tracer links show the instrumented behavior behind each value and are pinned to the reviewed source revision. Category and system values use the Manifest v1 vocabulary. Package names describe Maven delivery of the instrumented code. Display names use the official product branding. Creation dates use the first functional instrumentation commit.

aws-lambda — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name aws-lambda Tracer integration identity source — LambdaHandlerInstrumentation, the only module in the grounding entry and the one with 'declared' assignment, calls super("aws-lambda"), its sole configuration name, which matches the grounding integrations key 'aws-lambda' exactly.
display_name AWS Lambda Official product name source — The module matches implementers of the AWS Lambda runtime handler interfaces RequestStreamHandler and RequestHandler, which are the function-handler contract of the AWS Lambda platform. So the instrumented scope is AWS Lambda function invocation, not the core library as a generic artifact.
description Instruments AWS Lambda Java handler invocations, creating serverless spans and reporting invocation lifecycle data to the Datadog Lambda Extension. Complete Datadog patch-surface inventory source — Advice is applied to handleRequest(..., Context) on handler implementations. On enter (lines 87-98) it calls notifyLambdaStart, starts an invocation span, sets span type InternalSpanTypes.SERVERLESS, tags request_id, and activates the span. On exit (lines 116-142) it records throwables, finishes the span, and calls notifyExtensionEnd.
source — notifyStartInvocation POSTs the event to the extension at 127.0.0.1:8124/lambda/start-invocation and extracts the parent context from the response headers. notifyEndInvocation (line 105) POSTs the result plus trace, span, sampling, and error headers to /lambda/end-invocation. CoreTracer.notifyLambdaStart/notifyExtensionEnd (CoreTracer.java:1341-1358) delegate to these methods. This confirms that lifecycle data is reported to the Datadog Lambda Extension. AppSec hooks (notifyAppSecEnd) are a security add-on and are correctly left out of the description.
packages [com.amazonaws:aws-lambda-java-core] Tracer-to-Maven package mapping source — The only muzzle block is pass { group = 'com.amazonaws'; module = 'aws-lambda-java-core'; versions = '[1.2.1,)' }. This matches grounding publication_packages ['com.amazonaws:aws-lambda-java-core'] with package_source muzzle. The manifest carries no versions or extra coordinates.
category: faas faas Manifest v1 category policy · faas definition instrumentation source — faas qualifies. The integration's own advice on the Lambda handler's handleRequest(in, out, Context) creates the invocation span (operation name from namingSchema().cloud().operationForFaas("aws") in LambdaHandlerDecorator.java:8), tags the Lambda request id, and continues trigger context from the extension. That is handling a function invocation on a FaaS platform, which is the definition, and the invocation contract is directly instrumented, so reject_when does not apply. No other category qualifies. http.server does not apply because the hook is the Lambda handler interface, not an HTTP server API; API Gateway handling belongs to other integrations and the extension. The OkHttp calls to the extension are internal transport, so http.client does not apply. AppSec hooks are security-only. task.execution and workflow.durable_execution explicitly exclude FaaS invocation. Nothing is omitted.
systems: aws.lambda aws.lambda Manifest v1 system policy · aws.lambda definition instrumentation source — Identity and binding: the hierarchy matcher is bounded to com.amazonaws.services.lambda.runtime.RequestStreamHandler/RequestHandler, and the advice requires a com.amazonaws.services.lambda.runtime.Context argument (line 71). The module is enabled by default only when the Lambda runtime's _HANDLER env var is present (lines 40, 60). These handler interfaces exist only as the AWS Lambda platform's function contract, so the platform is statically bounded rather than selected at runtime and does not rest on a hardcoded tag. aws.lambda (kind platform, cloud.platform=aws_lambda) is the specific admitted ID for this dedicated AWS service, so the specificity rule excludes generic aws.
creation_date 2022-04-28 first commit adding working instrumentation instrumentation source — git log --follow --diff-filter=A on this file returns commit the linked commit ('[Serverless] Auto-instrument AWS Lambda Handler (#3506)'), author date 2022-04-28. Its stat shows the functional add of LambdaHandlerInstrumentation.java (115 lines), dd-trace-core LambdaHandler.java, and the CoreTracer/AgentTracer hooks, so it is not a relocation or build-only change. A pickaxe search for 'com.amazonaws.services.lambda.runtime' across all history, and for 'aws-lambda' under dd-java-agent/instrumentation, finds no earlier commit.
aws-sdk — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name aws-sdk Tracer integration identity source — The declared v1 module AwsSdkModule calls this("com.amazonaws", "aws-sdk") and then super(instrumentationName), so its first configuration name is aws-sdk. Grounding has an integrations key aws-sdk, and sfn, sns, and sqs fold into it.
source — The declared v2 module calls super("aws-sdk"). The governed SQS, SNS, and SFN modules use super("sqs"|"sns"|"sfn", "aws-sdk"), so they share the aws-sdk toggle.
display_name AWS SDK for Java Official product name source — The integration instruments both AWS SDK 1.11+ (com.amazonaws, this module) and AWS SDK 2.2+ (software.amazon.awssdk, the v2 AwsSdkModule at line 11), plus their SQS, SNS, and SFN service clients. "AWS SDK for Java" is the established product name covering both major versions. The POM name "AWS SDK for Java - Core" names only the shared aws-java-sdk-core module, which is narrower, so replacing it is correct.
description Instruments AWS SDK for Java requests across AWS services and traces Amazon SQS and SNS message operations with context propagation for SQS, SNS, and Step Functions. Complete Datadog patch-surface inventory source — For every AWS service request, the v1 RequestHandler2 starts a java-aws-sdk span and decorates it with the service, operation, and endpoint. v2 does the same in TracingExecutionInterceptor.beforeExecution.
source — On SQS SendMessage and SendMessageBatch, this starts an aws.sqs.send span and injects trace context into the message attributes at line 51. TracingIterator (line 106) creates consumer spans for received messages.
source — On SNS Publish and PublishBatch, this starts an aws.sns.send span and injects a _datadog message attribute carrying trace context (line 45).
source — Injects trace context JSON into the input of Step Functions StartExecution and StartSyncExecution requests. This is propagation only, which matches the description's wording.
packages [com.amazonaws:aws-java-sdk-core, com.amazonaws:aws-java-sdk-sns, com.amazonaws:aws-java-sdk-sqs, software.amazon.awssdk:aws-core, software.amazon.awssdk:sfn, software.amazon.awssdk:sns, software.amazon.awssdk:sqs] Tracer-to-Maven package mapping source — Muzzle pass block for com.amazonaws:aws-java-sdk-core. The other six projects have matching pass blocks: aws-java-sns-1.0 (line 7) aws-java-sdk-sns, aws-java-sqs-1.0 (line 6) aws-java-sdk-sqs, aws-java-sdk-2.2 (line 7) aws-core, aws-java-sfn-2.0 (line 7) sfn, aws-java-sns-2.0 (line 7) sns, and aws-java-sqs-2.0 (line 6) sqs. Together they equal the grounding publication_packages.
category: cloud_provider.client cloud_provider.client Manifest v1 category policy · cloud_provider.client definition instrumentation source — Adds TracingRequestHandler to the shared request handler chain of every AWS SDK v1 client. For v2, AwsClientInstrumentation (line 37) adds TracingExecutionInterceptor to every SDK client. Each request gets a span named after its service and operation, so this is the generic multi-service request pipeline. http.client is rejected because HTTP is only the transport for these dedicated service operations.
category: messaging.consumer messaging.consumer Manifest v1 category policy · messaging.consumer definition instrumentation source — For each message received from SQS ReceiveMessage, the wrapped iterator starts a consumer span (SqsDecorator.CONSUMER_DECORATE uses SPAN_KIND_CONSUMER and MESSAGE_CONSUMER). It is linked to the extracted upstream context and an optional time-in-queue broker span. The v2 TracingIterator does the same at line 110.
category: messaging.producer messaging.producer Manifest v1 category policy · messaging.producer definition instrumentation source — Dedicated SQS client advice starts an aws.sqs.send span for SendMessage and SendMessageBatch. TracingRequestHandler.beforeRequest (line 65) then enriches and finishes it, and context is injected into the message attributes. SnsInterceptor does the same for SNS Publish and PublishBatch (aws.sns.send). These are customer-facing send operations with their own spans, not just propagation.
systems: aws aws Manifest v1 system policy · aws definition instrumentation source — The generic multi-service AWS SDK pipeline is instrumented for all services: TracingExecutionInterceptor here and TracingRequestHandler in v1. The specificity rule requires aws for a generic AWS SDK implementation. The binding comes from the AWS SDK client itself, not from a tag.
systems: aws.sns aws.sns Manifest v1 system policy · aws.sns definition instrumentation source — Dedicated advice handles SNS PublishRequest and PublishBatchRequest from com.amazonaws.services.sns.model. The v2 SnsInterceptor handles software.amazon.awssdk.services.sns.model PublishRequest. This is deliberately bounded to Amazon SNS.
systems: aws.sqs aws.sqs Manifest v1 system policy · aws.sqs definition instrumentation source — Dedicated advice binds to SQS client model types: SendMessageRequest, SendMessageBatchRequest, and ReceiveMessageRequest from com.amazonaws.services.sqs.model. The v2 SqsInterceptor and the SqsModule/receive instrumentations are likewise bounded to SQS, so a dedicated AWS service implementation emits aws.sqs.
systems: aws.step_functions aws.step_functions Manifest v1 system policy · aws.step_functions definition instrumentation source — Dedicated Step Functions provider path: it modifies software.amazon.awssdk.services.sfn.model StartExecutionRequest and StartSyncExecutionRequest inputs. Those calls are spanned by the generic SDK interceptor, so the identity is bound by the SFN client model, not by a tag. Other AWS service identities were checked and rejected. Kinesis, S3, DynamoDB, and Lambda appear in the shared decorator only as tags or Data Streams checkpoints. The dedicated s3, dynamodb, eventbridge, and lambda modules belong to other integrations (aws-s3, aws-dynamodb, eventbridge, aws-lambda). jms is rejected because SqsJmsMessageInstrumentation only copies trace headers into the SQS JMS message properties.
creation_date 2017-05-23 first commit adding working instrumentation instrumentation source — This handler is the current successor of the original AWS SDK client instrumentation. The earliest commit in git log -G 'amazonaws|aws-sdk|AWSClient' is the linked commit (2017-05-23 14:08:55 +0200, "Refactoring project skel"). It added dd-java-agent/src/main/resources/otarules.btm with the Byteman rules "AWS SDK Client instrumentation 1/2", which inject io.opentracing.contrib.aws.TracingRequestHandler into AwsClientBuilder.build(). That is functional instrumentation. It was later migrated to Byte Buddy in e96c084 (2017-11-06).
azure-functions — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name azure-functions Tracer integration identity source — The HTTP-trigger module declares super("azure-functions"). This is the grounding key and its only config name.
source — The worker middleware module also declares super("azure-functions"). DurableOrchestrationExecutorInstrumentation (line 26) and DurableOrchestrationMiddlewareInstrumentation (line 23) declare the same name, so all four declared modules share one name.
display_name Azure Functions Official product name source — The span is named through operationForFaas("azure") and component "azure-functions" (line 17). The integration instruments the Azure Functions product: its HTTP-trigger Java library and the Java worker/Durable middleware. The POM "Microsoft Azure Functions Java Core Types" names a single types library and is narrower than this integration. "Azure Functions" is the established product spelling and covers both modules.
source — The module README uses the product spelling 'Azure Durable Functions' and links Azure Functions docs. This confirms the established 'Azure Functions' capitalization.
description Instruments Azure Functions HTTP invocations and Durable Functions activity, entity, and orchestration invocations. Complete Datadog patch-surface inventory source — Advice targets public methods taking (HttpRequestMessage, ExecutionContext) in classes that declare an @functionName method (lines 48-49). The advice starts a span (line 83) and tags aas.function.trigger=Http (AzureFunctionsDecorator line 81). This is the HTTP invocation family.
source — getTrigger recognizes the DurableOrchestrationTrigger, DurableActivityTrigger and DurableEntityTrigger parameters (lines 21-37). startInvocationSpan (lines 74-83) creates an invocation span for each. FunctionExecutionMiddleware.invoke advice (AzureFunctionsWorkerInstrumentation lines 61-73) creates the activity and entity spans.
source — TaskOrchestrationExecutor.execute advice starts orchestration spans, suppressing successful replays (shouldTrace). OrchestrationMiddleware advice activates orchestration context and records error spans. This is the orchestration family. The description covers each family once and claims no behavior beyond these modules.
packages [com.microsoft.azure.functions:azure-functions-java-library, com.microsoft.azure.functions:azure-functions-java-spi, com.microsoft:durabletask-azure-functions, com.microsoft:durabletask-client] Tracer-to-Maven package mapping source — The muzzle pass block covers com.microsoft.azure.functions:azure-functions-java-library at versions [1.2.2,).
source — Three muzzle pass blocks cover com.microsoft.azure.functions:azure-functions-java-spi (line 12), com.microsoft:durabletask-client (line 20) and com.microsoft:durabletask-azure-functions (line 28). Together with the library, these match the grounding publication_packages exactly. extraDependency-only coordinates such as azure-functions-java-core-library are correctly excluded.
category: faas faas Manifest v1 category policy · faas definition instrumentation source — The integration creates its own invocation spans (FaaS operation name from operationForFaas("azure"), SERVERLESS span type, aas.function.name/trigger tags) around Azure Functions HTTP-trigger handlers. DurableFunctionsUtils.startInvocationSpan does the same for Durable activity, entity and orchestration triggers. This is the FaaS invocation-and-trigger contract. http.server is excluded under the specificity rule: the HTTP request is the trigger of the same FaaS invocation, not a separate server API. The integration does not hook an HTTP server framework.
category: workflow.durable_execution workflow.durable_execution Manifest v1 category policy · workflow.durable_execution definition instrumentation source — DurableOrchestrationExecutorInstrumentation hooks the Durable Task SDK's TaskOrchestrationExecutor.execute(pastEvents, newEvents) and starts orchestration spans itself. shouldTrace inspects the replay history and suppresses successful replays. failureDetails reads the orchestrator's CompleteOrchestration FAILED action, and isReplayControlFlow filters OrchestratorBlockedException/ContinueAsNewInterruption. This instruments the durable orchestrator, replay and activity contract, not merely a FaaS handler, so the reject_when clause does not apply. The capability is distinct from faas. No messaging, rpc, task.execution or other category applies: there is no broker client, no independent RPC API, and durable execution is excluded from task.execution.
systems: azure.functions azure.functions Manifest v1 system policy · azure.functions definition instrumentation source — The binding comes from the hooked APIs, not from a tag. They exist only on the Azure Functions platform: the Azure Functions Java worker's FunctionExecutionMiddleware with the Azure Functions SPI MiddlewareContext, and the azure-functions-java-library HttpRequestMessage/ExecutionContext/@functionName contract (AzureFunctionsInstrumentation lines 48-57). No runtime-selected backend is accepted. azure.functions is the admitted platform-kind identity (OTel cloud.platform=azure.functions). Generic azure is rejected because no multi-service Azure SDK is instrumented. No other system qualifies: Durable Task backend storage is not instrumented, and no grpc client or server contract is exposed.
creation_date 2025-03-05 first commit adding working instrumentation instrumentation source — Following this file's history with git log --follow ends at commit the linked commit, 'Add azure-functions instrumentation (#8432)'. Its author date is 2025-03-05T08:56:34-05:00. That commit added the functional module (then dd-java-agent/instrumentation/azure-functions) with its instrumentation, decorator and extract adapter. Earlier azure-path additions: none. Later azure-path additions: 51813bd (2025-03-24, Gradle lockfiles only) and deb81bb (2026-10-12, Durable support). No predecessor exists under any member name.
dynamodb — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name dynamodb Tracer integration identity source — The only module in the integration (assignment: declared in grounding) calls super("dynamodb", "aws-dynamodb"); its first configuration name is 'dynamodb', which matches the grounding integrations key. No other module in dd-java-agent/instrumentation declares either name.
display_name Amazon DynamoDB Official product name source — The interceptor is bound to the DynamoDB service client model (software.amazon.awssdk.services.dynamodb.model.*), so the integration covers exactly the Amazon DynamoDB client. The POM 'AWS Java SDK :: Services :: Amazon DynamoDB' ends with the product name 'Amazon DynamoDB'. That spelling and capitalization are correct, and the label avoids the POM's module-path prefix.
description Instruments AWS SDK for Java v2 DynamoDB item update and deletion operations by adding span pointers to their request spans. Complete Datadog patch-surface inventory source — This is the entire patch surface. Exit advice on SdkDefaultClientBuilder.resolveExecutionInterceptors (AWS SDK v2 core builder, line 22) appends a single DynamoDbInterceptor (line 40). It defines no other type instrumentations.
source — afterExecution is gated by Config.isAddSpanPointers("aws") (line 28). It retrieves the request span from the shared DatadogContext execution attribute (lines 36-37) and acts only on UpdateItemRequest (line 44) and DeleteItemRequest (line 47). In both cases it exports the item's primary key(s) through DynamoDbUtil.
source — exportTagsWithKnownKeys sets temporary primary-key name and value tags on the span 'so that SpanPointersProcessor.java can complete the span pointer creation' (lines 40-41).
source — The core processor removes the DYNAMO_PRIMARY_KEY_* tags (lines 89-100) and builds a span pointer of kind 'aws.dynamodb.item' (line 35, line 114). This confirms that 'adding span pointers' is accurate. The description covers the only operation family (item update and delete) and makes no unsupported claims.
packages [software.amazon.awssdk:dynamodb] Tracer-to-Maven package mapping source — The only muzzle block is a pass directive, group software.amazon.awssdk, module dynamodb, versions [2.0,3) with assertInverse (lines 7-11). This matches the grounding publication_packages ['software.amazon.awssdk:dynamodb'] (package_source: muzzle). The manifest has no versions, test-only dependencies, or extra coordinates.
category: db.client db.client Manifest v1 category policy · db.client definition instrumentation source — Advice side: the integration deliberately owns DynamoDB UpdateItem and DeleteItem (lines 44-50), which are first-class key-value database write/delete client operations. It annotates the request span for that same operation, read from the DatadogContext execution attribute (lines 24-26, 36-37). It does not annotate an enclosing or different operation. I applied the applicability rules: (1) no more specific family describes the operation; (2) http.client is rejected because HTTP is only transport for a dedicated service client; (3) cloud_provider.client is rejected because the hook acts only on the dedicated DynamoDB request types, not generic multi-service dispatch; (4) object_store, messaging, rpc, and the other families do not apply. Completeness: the module has no other hooks, so no category is omitted. 'other' is correctly not used.
instrumentation source — Span-creating path: in the same SDK execution-interceptor chain, the AWS SDK v2 interceptor starts the request span for each SDK call, including DynamoDB UpdateItem/DeleteItem (lines 59-63). It stores the span under the shared 'DatadogContext' ExecutionAttribute (lines 40-42). That is the attribute DynamoDbInterceptor reads, so a trace span exists for the exact DynamoDB operation this integration enriches.
systems: aws.dynamodb aws.dynamodb Manifest v1 system policy · aws.dynamodb definition instrumentation source — Identity: the integration imports and dispatches on the DynamoDB service model types DeleteItemRequest and UpdateItemRequest (lines 17-19). Binding: an instanceof check restricts it to those types (lines 44-50), so the only backend it can reach is Amazon DynamoDB. This comes from what the API is, not from a hardcoded tag. The interceptor is installed on every SDK v2 client builder, but it is a no-op for any other service. Per the specificity rule for a dedicated AWS service implementation, the specific aws.dynamodb ID is required and generic 'aws' must not be added. No other admitted system qualifies.
instrumentation source — The span pointer kind the integration produces is 'aws.dynamodb.item' (line 35, used at line 114). This corroborates the DynamoDB-only binding.
creation_date 2025-03-07 first commit adding working instrumentation instrumentation source — I ran git log over every DynamoDB-named path (including --diff-filter=A on '[Dd]ynamo[Dd]b' and 'dynamodb'). The oldest commit is the linked commit, 'Create DynamoDB instrumentation + add span pointers for updateItem and deleteItem (#8490)', by Nicholas Hulston, author date 2025-03-07 09:13:04 -0500. It adds the functional DynamoDbClientInstrumentation, DynamoDbInterceptor, and DynamoDbUtil plus the SpanPointersProcessor DynamoDB support. There is no earlier predecessor under either config name, and no other module declares 'dynamodb' or 'aws-dynamodb'.
emr-aws-sdk — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name emr-aws-sdk Tracer integration identity source — EmrSdkModule (the single 'declared' module in the grounding entry) calls super("com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws", "emr-aws-sdk"); AwsSdkModule passes that instrumentationName to InstrumenterModule.Tracing (AwsSdkModule.java:20), so emr-aws-sdk is its first and only configuration name, and it matches the grounding integrations key.
display_name Amazon EMR AWS SDK Official product name source — Javadoc reads 'Repackaged AWS SDK instrumentations for Amazon EMR.' The module targets only the AWS SDK classes shaded into the Amazon EMR file system (namespace com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws, line 13; adviceShading, line 23). That matches the reviewed_runtime label 'Amazon EMR AWS SDK', which names exactly this vendor-repackaged SDK. It is not a Maven coordinate, a generic subproject, or the broader public aws-sdk integration.
description Instruments Amazon EMR's relocated AWS SDK requests, creating spans and optionally propagating trace context. Complete Datadog patch-surface inventory source — The patch surface, with the namespace rebased onto the EMR-shaded package, consists of three hooks: AWSHttpClientInstrumentation (AmazonHttpClient.doExecute), RequestExecutorInstrumentation (AmazonHttpClient$RequestExecutor.doExecute) and HandlerChainFactoryInstrumentation (HandlerChainFactory.newRequestHandler2Chain).
source — HandlerChainAdvice appends TracingRequestHandler to every SDK client's handler chain. In beforeRequest it starts a java-aws-sdk span for each request and finishes it in afterResponse or afterError; the doExecute advice closes the span on non-SDK exceptions. This supports 'creating spans' for the SDK's requests.
source — X-Ray trace header injection is gated on Config.isAwsPropagationEnabled() (configurable, default true per Config.java:3131), which supports 'optionally propagating trace context'. The other non-span behavior is a Kinesis GetRecords Data Streams checkpoint (line 115). It is a narrow DSM side-path, and leaving it out of a one-sentence description is not a material omission.
packages [] Tracer-to-Maven package mapping source — EmrSdkModule overrides muzzleDirective() to return 'emr-aws-sdk'. build.gradle has only an unnamed pass block for com.amazonaws:aws-java-sdk-core, so no pass block carries this directive. The grounding records package_source 'reviewed', scope_kind 'platform', publication_packages [] and a muzzle_directive_resolution 'accept'. That reason (the SDK is shaded inside the EMR file system, no public coordinate) still holds because the instrumented namespace is com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws (line 13). A platform integration correctly publishes [].
category: cloud_provider.client cloud_provider.client Manifest v1 category policy · cloud_provider.client definition instrumentation source — The advice adds TracingRequestHandler to the generic AWS SDK v1 request-handler chain (shared pipeline for every service client). TracingRequestHandler.java:68 starts a span per request, and AwsSdkClientDecorator.java:94-100 tags aws.service and aws.operation and sets the resource from the service model. That is the integration's own trace span for the generic multi-service SDK pipeline, so cloud_provider.client qualifies (signal_scope trace satisfied). Its reject_when does not apply because this is not a dedicated service client. http.client is rejected: HTTP is only transport for the SDK's named operations, even though the decorator extends HttpClientDecorator. object_store.client, messaging.producer/consumer, db.client and faas are rejected: the S3, SQS, SNS, Kinesis, DynamoDB and Lambda handling is only tagging, peer-service and DSM enrichment on the same generic SDK span, not a distinct dedicated service contract (SQS receive message spans belong to the separate aws-java-sqs integration). No other admitted category is supported by the three hooks.
systems: aws aws Manifest v1 system policy · aws definition instrumentation source — Binding comes from the dedicated client, not a tag. The hooks instrument the AWS SDK for Java v1 core pipeline (AmazonHttpClient, HandlerChainFactory) shaded into EMRFS, an SDK that exists only to call Amazon Web Services and dispatches across many services. Under the specificity rule, a generic multi-service AWS SDK implementation MUST emit aws and not also dedicated service IDs. The hooks are not bounded to any single AWS service, so aws.s3, aws.dynamodb, aws.sqs, aws.sns, aws.kinesis and aws.lambda are correctly omitted. Endpoint configurability does not turn this dedicated provider SDK into a backend-neutral adapter.
creation_date 2025-01-06 first commit adding working instrumentation instrumentation source — git log -S 'com.amazon.ws.emr.hadoop.fs.shaded' across all refs returns exactly one commit: the linked commit 'Instrument EMR's relocated AWS SDK (#8157)'. Its author date is 2025-01-06 10:03:21 +0000. It adds EmrSdkModule.java and makes the namespace configurable in AwsSdkModule and the three instrumentations, so it is a functional instrumentation commit, not a relocation, build-only or test-only change. No earlier predecessor references the EMR-shaded namespace, and a search for the 'emr-aws-sdk' name returns the same commit.
eventbridge — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name eventbridge Tracer integration identity source — This is the only module in the grounding entry, and its assignment is 'declared'. Its constructor calls super("eventbridge"), so the first configuration name is exactly 'eventbridge', which matches the grounding integrations key.
display_name Amazon EventBridge Official product name source — The interceptor acts only on software.amazon.awssdk.services.eventbridge.model.PutEventsRequest, so the instrumented scope is the Amazon EventBridge service client and nothing broader or narrower.
description Instruments AWS SDK for Java EventBridge PutEvents requests to inject trace context and Data Streams Monitoring metadata into event payloads. Complete Datadog patch-surface inventory source — This is the whole patch surface. Advice on SdkDefaultClientBuilder.resolveExecutionInterceptors (AWS SDK for Java v2 core) adds EventBridgeInterceptor to every built client (line 40).
source — modifyRequest only handles PutEventsRequest (line 40), gated by isEventbridgeInjectDatadogAttributeEnabled. For each entry it appends a _datadog object to the detail JSON (lines 69-77). That object holds context injected through defaultPropagator (line 101) and, when DSM is enabled, a DataStreamsContext with OUTBOUND tags for bus and detail type (lines 96-99, 121-137). It also carries the start time and bus name (lines 104-115). The description covers the single operation family accurately. Omitting the bus-name and start-time keys and the DSM gate is not material.
packages [software.amazon.awssdk:eventbridge] Tracer-to-Maven package mapping source — The muzzle pass block has group software.amazon.awssdk, module eventbridge, versions [2.7,3) and assertInverse true. This matches grounding publication_packages (package_source muzzle) exactly. The test-only sqs and sns dependencies are correctly excluded.
category: messaging.producer messaging.producer Manifest v1 category policy · messaging.producer definition instrumentation source — The customer-facing contract this integration deliberately owns is EventBridge PutEvents, which publishes events to an event bus (a broker publish). It reads CONTEXT_ATTRIBUTE, which is the PutEvents client span that the separately instrumented AWS SDK v2 library starts for this same call (TracingExecutionInterceptor.java:59-63, asserted as EventBridge.PutEvents in EventBridgeClientTest.groovy:156). It then carries that trace context, plus OUTBOUND DSM context, into each published event's payload. The span therefore belongs to the same operation, not an enclosing or different one, which satisfies the trace signal_scope. Propagation here is not a mechanism beneath a more specific contract; it is the producer side of the publish operation.
systems: aws.eventbridge aws.eventbridge Manifest v1 system policy · aws.eventbridge definition instrumentation source — The binding comes from constrained dispatch. The interceptor imports and type-checks only software.amazon.awssdk.services.eventbridge.model.PutEventsRequest (line 40), the dedicated EventBridge service model. That request type can only reach the Amazon EventBridge event bus API. The specificity rule says a dedicated AWS service implementation emits its specific service ID, so aws.eventbridge is correct and generic aws is correctly left out. The 'eventbridge' DSM type tag at line 127 is corroboration only, not the proof.
creation_date 2024-10-04 first commit adding working instrumentation instrumentation source — git log --follow --diff-filter=A on this file returns only the linked commit, 'Inject trace context into EventBridge detail (#7613)', authored 2024-10-04. A case-insensitive -G'eventbridge' search over dd-java-agent/instrumentation finds no earlier commit, so there is no predecessor module. The commit is the functional introduction, not a relocation or a build-only change.
s3 — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name s3 Tracer integration identity source — The only module in the grounding entry (assignment: declared) calls super("s3", "aws-s3"), so its first configuration name is s3. That matches the grounding integrations key 's3'.
display_name Amazon S3 Official product name source — The interceptor only handles Amazon S3 SDK response types (PutObjectResponse, CopyObjectResponse, CompleteMultipartUploadResponse from software.amazon.awssdk.services.s3.model). The integration is therefore scoped to exactly the Amazon S3 service client.
description Instruments AWS SDK for Java Amazon S3 client operations to add span pointers to request spans for object uploads, copies, and completed multipart uploads. Complete Datadog patch-surface inventory source — Advice on SdkDefaultClientBuilder.resolveExecutionInterceptors appends S3Interceptor to the AWS SDK v2 client interceptor list (line 40). This is the full patch surface.
source — afterExecution is gated on isAddSpanPointers("aws"). It takes the request span from the shared DatadogContext attribute and, only for PutObject (upload), CopyObject (copy) and CompleteMultipartUpload responses, tags s3.eTag (line 58). Every other response returns early, so the three named operation families are complete and nothing extra is claimed.
source — handleS3SpanPointer removes s3.eTag, combines it with the bucket and key tags, hashes them, and adds an 'aws.s3.object' span-pointer link to the span. This confirms the 'add span pointers to request spans' wording.
packages [software.amazon.awssdk:s3] Tracer-to-Maven package mapping source — The muzzle pass block has group software.amazon.awssdk, module s3, versions [2,3) and assertInverse = true. This matches the grounding publication_packages (package_source: muzzle) exactly, with no version or classifier attached.
category: object_store.client object_store.client Manifest v1 category policy · object_store.client definition instrumentation source — Dedicated handling of S3 object upload (PutObject), copy (CopyObject) and multipart-upload completion. These are first-class object-store client operations, so the reject_when case ('a generic cloud SDK merely could call an object store without dedicated handling') does not apply. The trace-scope span for this same S3 operation is created by the aws-sdk-2.2 TracingExecutionInterceptor (beforeExecution startSpan, then putAttribute CONTEXT_ATTRIBUTE). This interceptor runs in that same SDK interceptor chain, reads that span through the shared 'DatadogContext' attribute (lines 34-35), and adds the object's eTag for an S3 object span pointer. It does not tag an enclosing or different operation. cloud_provider.client is rejected because this is a dedicated service client with a more specific family. http.client is rejected because HTTP is only the transport. No other category (messaging, db, serialization, and so on) describes any hook in the inventory, and 'other' is not needed.
instrumentation source — This is the span-creating code path for the S3 request. Line 63 stores the span in CONTEXT_ATTRIBUTE, which S3Interceptor later reads. AwsSdkClientDecorator.java:137-140 tags the bucket and object key on that span for S3 requests.
systems: aws.s3 aws.s3 Manifest v1 system policy · aws.s3 definition instrumentation source — The binding is constrained dispatch on the dedicated Amazon S3 service model types (software.amazon.awssdk.services.s3.model.*Response, used at lines 45-50). No other backend can reach the tagged path, and the source does not rely on a telemetry label. The specificity rule requires a dedicated AWS service implementation to emit its specific service ID (aws.s3) rather than aws. The interceptor is attached to every SDK client builder, but it acts only on S3 responses, so the generic 'aws' ID is not warranted and no other system qualifies.
creation_date 2025-01-22 first commit adding working instrumentation instrumentation source — git log --follow traces this file back through 1f35448 (2025-08-19, an R100 move from instrumentation/aws-java-s3-2.0 into instrumentation/aws-java/) to commit 6d86370 'Create S3 instrumentation + add span pointers (#8075)', authored 2025-01-22. That commit adds S3ClientInstrumentation, S3Interceptor, build.gradle and SpanPointersProcessor. Earlier --follow history comes only from Git copy-detection against the EventBridge and SNS files, not from S3 functionality. A diff-filter=A search for s3 instrumentation paths shows no earlier S3 integration.

Testing

None. This PR only adds metadata files.

Risks

The added YAML is declarative metadata and introduces no runtime instrumentation or public API change. Metadata can become stale if later instrumentation changes do not update its manifest. Package lists describe Maven delivery and are not a complete list of targeted assemblies or modules.

Contributor Checklist

Jira ticket: IDMPL-594

@chojomok chojomok added tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: documentation comp: tooling Build & Tooling labels Nov 12, 2026 — with ChatGPT Codex Connector
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 59.76% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c712bb2 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.83 s 14.68 s [+0.2%; +1.8%] (maybe worse)
startup:insecure-bank:tracing:Agent 13.62 s 13.64 s [-0.9%; +0.6%] (no difference)
startup:petclinic:appsec:Agent 17.79 s 17.56 s [+0.2%; +2.4%] (maybe worse)
startup:petclinic:iast:Agent 17.61 s 17.62 s [-0.8%; +0.7%] (no difference)
startup:petclinic:profiling:Agent 17.40 s 17.16 s [+0.3%; +2.5%] (maybe worse)
startup:petclinic:sca:Agent 17.74 s 17.66 s [-0.6%; +1.6%] (no difference)
startup:petclinic:tracing:Agent 16.79 s 16.76 s [-0.9%; +1.4%] (no difference)

Commit: c712bb2e · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@chojomok chojomok changed the title Add instrumentation manifests for Java cloud serverless Add integration manifests for Java cloud serverless Nov 17, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chojomok
chojomok marked this pull request as ready for review November 19, 2026 21:11
@chojomok
chojomok requested review from a team as code owners November 19, 2026 21:11
@chojomok
chojomok requested review from jpbempel and removed request for a team November 19, 2026 21:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T21:14:17.709519Z c712bb2 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-19T21:15:19.989070Z c712bb2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

Manifest contents align with the pinned instrumentation’s package mappings and capabilities. External Manifest v1 schema validation could not be independently rerun.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit c712bb2

@chojomok
chojomok changed the base branch from master to mohammad-islam/java-instrumentation-manifest-pilot November 20, 2026 18:16
@chojomok
chojomok requested a review from a team as a code owner November 20, 2026 18:16
@chojomok
chojomok requested review from jordan-wong and removed request for a team November 20, 2026 18:16

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The seven manifests match the reviewed instrumentation behavior and history, with no actionable metadata defects identified. Conformance to the external Manifest v1 schema remains unverified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit c712bb2

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant