Repository navigation
Conversation
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
Manifest contents align with the pinned instrumentation’s package mappings and capabilities. External Manifest v1 schema validation could not be independently rerun.
🤖 Bits Code Review · Commit c712bb2
There was a problem hiding this comment.
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.
🤖 Bits Code Review · Commit c712bb2
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.yamlfile 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-sdk)azure-functions)dynamodb)emr-aws-sdk)eventbridge)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.
aws-lambdafaasaws.lambda2022-04-28aws-sdkcloud_provider.client,messaging.consumer,messaging.produceraws,aws.sns,aws.sqs,aws.step_functions2017-05-23azure-functionsfaas,workflow.durable_executionazure.functions2025-03-05dynamodbdb.clientaws.dynamodb2025-03-07emr-aws-sdkcloud_provider.clientaws2025-01-06eventbridgemessaging.produceraws.eventbridge2024-10-04s3object_store.clientaws.s32025-01-22Field-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_v1nameaws-lambdadisplay_nameAWS LambdadescriptionInstruments AWS Lambda Java handler invocations, creating serverless spans and reporting invocation lifecycle data to the Datadog Lambda Extension.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.
packagescom.amazonaws:aws-lambda-java-core]category: faasfaasfaasdefinitionsystems: aws.lambdaaws.lambdaaws.lambdadefinitioncreation_date2022-04-28aws-sdk— accepted field evidence_v1nameaws-sdksource — 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_nameAWS SDK for JavadescriptionInstruments 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.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.
packagescom.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]category: cloud_provider.clientcloud_provider.clientcloud_provider.clientdefinitioncategory: messaging.consumermessaging.consumermessaging.consumerdefinitioncategory: messaging.producermessaging.producermessaging.producerdefinitionsystems: awsawsawsdefinitionsystems: aws.snsaws.snsaws.snsdefinitionsystems: aws.sqsaws.sqsaws.sqsdefinitionsystems: aws.step_functionsaws.step_functionsaws.step_functionsdefinitioncreation_date2017-05-23azure-functions— accepted field evidence_v1nameazure-functionssource — 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_nameAzure Functionssource — The module README uses the product spelling 'Azure Durable Functions' and links Azure Functions docs. This confirms the established 'Azure Functions' capitalization.
descriptionInstruments Azure Functions HTTP invocations and Durable Functions activity, entity, and orchestration invocations.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.
packagescom.microsoft.azure.functions:azure-functions-java-library,com.microsoft.azure.functions:azure-functions-java-spi,com.microsoft:durabletask-azure-functions,com.microsoft:durabletask-client]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: faasfaasfaasdefinitioncategory: workflow.durable_executionworkflow.durable_executionworkflow.durable_executiondefinitionsystems: azure.functionsazure.functionsazure.functionsdefinitioncreation_date2025-03-05dynamodb— accepted field evidence_v1namedynamodbdisplay_nameAmazon DynamoDBdescriptionInstruments AWS SDK for Java v2 DynamoDB item update and deletion operations by adding span pointers to their request spans.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.
packagessoftware.amazon.awssdk:dynamodb]category: db.clientdb.clientdb.clientdefinitioninstrumentation 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.dynamodbaws.dynamodbaws.dynamodbdefinitioninstrumentation 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_date2025-03-07updateItemanddeleteItem(#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_v1nameemr-aws-sdkdisplay_nameAmazon EMR AWS SDKdescriptionInstruments Amazon EMR's relocated AWS SDK requests, creating spans and optionally propagating trace context.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[]category: cloud_provider.clientcloud_provider.clientcloud_provider.clientdefinitionsystems: awsawsawsdefinitioncreation_date2025-01-06eventbridge— accepted field evidence_v1nameeventbridgedisplay_nameAmazon EventBridgedescriptionInstruments AWS SDK for Java EventBridge PutEvents requests to inject trace context and Data Streams Monitoring metadata into event payloads.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.
packagessoftware.amazon.awssdk:eventbridge]category: messaging.producermessaging.producermessaging.producerdefinitionsystems: aws.eventbridgeaws.eventbridgeaws.eventbridgedefinitioncreation_date2024-10-04s3— accepted field evidence_v1names3display_nameAmazon S3descriptionInstruments AWS SDK for Java Amazon S3 client operations to add span pointers to request spans for object uploads, copies, and completed multipart uploads.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.
packagessoftware.amazon.awssdk:s3]category: object_store.clientobject_store.clientobject_store.clientdefinitioninstrumentation 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.s3aws.s3aws.s3definitioncreation_date2025-01-22Testing
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
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: IDMPL-594