ShowMerit

Preview OTel Java Agent 3.0 in Splunk With One Flag: Pool Metrics and DB Spans

A preview copy with one environment variable showed OTel Java agent 3.0's database names in Splunk on EKS: pool metrics under db.client.connection, timings stored 1,000x smaller and a new db.namespace value.

Rechecked 1 Dec 2026: works with agent 2.33.1 and 2.34.0, splunk-otel-collector chart 0.163.1 and 0.165.0 (on a GitHub runner)

Abhimanyu BajajPublished 13 Nov 20266 min readTested in eu-central-1Lab codeLab evidence

Run this yourself

On your AWS account

The full lab with your own AWS account and Splunk token. Follow the steps below, then run its clean up step so nothing keeps running.

git clone https://github.com/Abhimanyu9988/showmerit.git
cd showmerit/labs/preview-otel-java-agent-3-0-in-splunk-with-one-flag

I put a preview copy of two Java services next to the originals on EKS, flipped one flag on the copy, and opened Splunk Observability Cloud to see what my dashboards will meet when the OpenTelemetry Java agent 3.0 becomes the default.

Every connection pool metric moved to its new name, and the same pool timing was stored about 1,000 times smaller: the old values times 0.001 matched the new ones within 1.1% in all three rounds. That's the conversion your charts and thresholds will need.

The flag is OTEL_INSTRUMENTATION_COMMON_V3_PREVIEW=true, on the same jar, image and load, and you can run the same check before any upgrade.

TL;DR

  • One environment variable on a copy of each service shows 3.0's database names in Splunk, while the originals keep feeding your charts.
  • Pool metrics moved to db.client.connection.* (65 series per service, 0 under the old names), and the same pool timing was stored about 1,000 times smaller in all three rounds.
  • db.client.operation.duration appeared with the preview: 0 series before, 112 after.
  • Span names move from UPDATE postgres.stock to update stock, and the agent sends db.query.text and db.system.name instead of db.statement and db.system.

Why I looked before upgrading

The OpenTelemetry project shipped 2.32.0 as the 3.0 release candidate and asks users to preview it now. With the default agent, Splunk held this for two Spring Boot services on Postgres:

default run, orders: pool series under db.client.connections.* 65, under db.client.connection.* 0
default run, inventory: pool series under db.client.connections.* 65, under db.client.connection.* 0
default run: db.client.operation.duration series 0

One flag, on a copy rather than the live service

The preview turns off dual emission for these names, as the blog explains, so switching a live service would move its charts at once. fix.sh copies the running pair to orders-v3 and inventory-v3 on the same node, with two changes to the environment:

env:
  - name: OTEL_INSTRUMENTATION_COMMON_V3_PREVIEW
    value: "true"
  - name: JAVA_TOOL_OPTIONS   # same options, with a -v3 environment label
    value: "-javaagent:/lab/opentelemetry-javaagent.jar ... -Dotel.resource.attributes=deployment.environment=YOUR_ENV-v3 ..."

For your own service, copy its Deployment under a new name with the same two changes.

Run it in your own account in 3 steps

Step 1: Create the cluster (the EKS cluster took 6m34s in my run)

git clone https://github.com/Abhimanyu9988/showmerit.git
cd showmerit/labs/preview-otel-java-agent-3-0-in-splunk-with-one-flag
export AWS_REGION=eu-central-1 TF_VAR_region=eu-central-1 LAB_NAME=agent3-preview TF_VAR_lab_name=agent3-preview
export SPLUNK_REALM=us1 SPLUNK_ACCESS_TOKEN=your-ingest-token SPLUNK_API_TOKEN=your-api-token
terraform init && terraform apply -auto-approve

Step 2: Record what the default agent sends (about 7 minutes)

Run ./reproduce.sh. It installs the Splunk OTel Collector (chart 0.163.1), starts orders, inventory and Postgres with agent 2.33.1 on its defaults, runs a load and reads Splunk back.

Step 3: Start the preview copy and compare (about 12 minutes)

Run ./fix.sh. It starts the copy, warms it up, and runs three 90-second rounds against both pairs at once: 19.89 requests a second each, 0 failed.

Four things that changed in Splunk

1. Pool metric names. 05-fix.log lists 19 pool metric names for each mode (lines 32 to 50 and 52 to 70), counting histogram parts separately. Grouped by base metric, as Splunk stored them:

Default agent 3.0 preview Unit, from the free check
db.client.connections.usage db.client.connection.count
db.client.connections.max db.client.connection.limit
db.client.connections.idle.min db.client.connection.idle.min
db.client.connections.pending_requests db.client.connection.pending_requests
db.client.connections.use_time (5 parts) db.client.connection.use_time (5 parts) ms, then s
db.client.connections.wait_time (5 parts) db.client.connection.wait_time (5 parts) not read
db.client.connections.create_time (5 parts) db.client.connection.create_time (5 parts) not read

The five parts are _bucket, _count, _max, _min and _sum. Each service had 65 series under the new names and 0 under the old.

2. Stored pool timings. Same work, same minutes. Splunk stored values as sent: the default mean in milliseconds, the preview mean in seconds:

Round Default use_time mean Preview use_time mean Ratio
1 3.073044 0.003106 989.4
2 2.829065 0.002802 1009.7
3 2.837665 0.002859 992.5

Scaled by 0.001, the default means read 0.003073, 0.002829 and 0.002838 seconds, within 1.1% of the preview's values in each round. That's the conversion to apply to any chart or threshold built on the old use_time.

3. Span names and keys. One span from each pair's trace, as Splunk APM returned them (05-fix.log lines 164 and 168). Splunk also lists normalized keys such as db.query.text on the default span; the agent's own keys are in the next section:

inventory UPDATE postgres.stock: db.collection.name=stock db.connection_string=postgresql://postgres:5432 db.name=postgres db.namespace=postgres db.operation=UPDATE db.operation.name=UPDATE db.query.text=update stock set qty = qty where id = ? db.sql.table=stock db.statement=update stock set qty = qty where id = ? db.system=postgresql db.system.name=postgresql db.user=postgres
inventory update stock: db.namespace=postgres|postgres db.query.summary=update stock db.query.text=update stock set qty = qty where id = ? db.system.name=postgresql

These Splunk APM screenshots come from the first EKS run of this same lab (workflow run 43319570384, 12 November 2026), which stopped on one Splunk read. Its traces show the same span names and keys:

Splunk APM trace waterfalls from the lab: the default agent's spans named SELECT postgres.audit and UPDATE postgres.stock on postgresql:postgres, and the preview's spans named select audit and update stock on postgresql:postgres|postgres

The preview's db.namespace reads postgres|postgres. The OpenTelemetry blog's example of the new format is orders|public; I didn't record this lab's schema settings, so check your own value.

4. A new metric. db.client.operation.duration went from 0 series to 112 with the preview.

What the agent itself sends

The agent itself sends only the old keys by default. The lab's free check (evidence/00-free-check.log) prints the agent's own console output, before any Collector or Splunk is involved:

-- default run: database span keys: db.connection_string db.name db.operation db.sql.table db.statement db.system db.user
-- preview run: database span keys: db.namespace db.query.summary db.query.text db.system.name
use_time unit: default ms, preview s

So the change to plan for is the agent's: db.statement, db.system, db.name, db.operation and db.sql.table give way to db.query.text, db.system.name, db.namespace and db.query.summary. The last line shows the agent declaring the pool timing unit as ms by default and s with the preview.

Splunk APM span tags from the lab: the default span with db.statement, db.sql.table and db.name next to db.query.text and db.namespace, and the preview span with db.namespace postgres|postgres, db.query.summary, db.query.text and db.system.name

Before you upgrade: a short checklist

Clean up (the cluster costs money while it runs)

./cleanup.sh
terraform destroy -auto-approve

What I didn't test

Sources

Disclosure: I work at Splunk, part of Cisco, and contribute to OpenTelemetry. This is my personal writing; the post isn't sponsored or reviewed by my employer.


I built this in a disposable AWS lab. The lab code and raw output are public. Drafted with AI assistance and reviewed by me.

Read next

OpenTelemetry code owner for two Collector components. Writes hands-on AWS container guides, each tested in a lab. See the proof