Skip to content

bump apm-data to v1.23.0 - #22375

Merged
aelnahas merged 3 commits into
elastic:mainfrom
aelnahas:semconv-133-support
Nov 5, 2026
Merged

aelnahas merged 3 commits into
elastic:mainfrom
aelnahas:semconv-133-support

Conversation

@aelnahas

@aelnahas aelnahas commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Motivation/summary

this PR updates the apm-data to v1.23.0 https://github.com/elastic/apm-data/releases/tag/v1.23.0 which includes the added support for semconv 1.33

Checklist

For functional changes, consider:

  • Is it observable through the addition of either logging or metrics?
  • Is its use being published in telemetry to enable product improvement?
  • Have system tests been added to avoid regression?

How to test these changes

  1. Run es on docker container
    shdocker compose up -d elasticsearch
  2. compile and run apm-server binary from this branch
  3. to help with sending an otlp trace with the help of ai I have added the following convenient go script
import (
      "context"
      "time"

      "go.opentelemetry.io/otel/attribute"
      "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
      sdktrace "go.opentelemetry.io/otel/sdk/trace"
      "go.opentelemetry.io/otel/trace"
)

func main() {
      ctx := context.Background()
      exp, _ := otlptracegrpc.New(ctx, otlptracegrpc.WithEndpoint("127.0.0.1:8200"), otlptracegrpc.WithInsecure())
      tp := sdktrace.NewTracerProvider(sdktrace.WithBatcher(exp, sdktrace.WithBatchTimeout(time.Millisecond)))
      tracer := tp.Tracer("manual-verify")

      ctx, root := tracer.Start(ctx, "txn", trace.WithSpanKind(trace.SpanKindServer))
      _, child := tracer.Start(ctx, "db_call", trace.WithSpanKind(trace.SpanKindClient), trace.WithAttributes(
              attribute.String("db.system.name", "elasticsearch"), // should be supported now with semconv 1.33
      ))
      child.End()
      root.End()
      tp.Shutdown(ctx)
}
  1. execute the script to send a trace
  2. curl es for the indexed data
curl -s -u <user>:<password> "http://localhost:9200/traces-apm*/_search" \
  -H 'Content-Type: application/json' \
  -d '{"query":{"term":{"span.name":"db_call"}}}' | \
  jq '.hits.hits[0]._source.span | {type, subtype, db}'

you should see the following as a response of the curl request

{
  "type": "db",
  "subtype": "elasticsearch",
  "db": {
    "type": "elasticsearch"
  }

Related issues

Fixes: #20248

@aelnahas
aelnahas requested a review from a team as a code owner November 4, 2026 22:56
Copilot AI balanced review requested due to automatic review settings November 4, 2026 22:56
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify

mergify Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label. Could you fix it @aelnahas? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8.19 is the label to automatically backport to the 8.19 branch.
  • backport-9./d is the label to automatically backport to the 9./d branch. /d is the digit.
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@aelnahas aelnahas added the backport-active-all Automated backport with mergify to all the active branches label Nov 4, 2026

Copilot AI 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.

🟢 Approval recommended

No active review issues are identified for the dependency updates supporting OpenTelemetry database semantic conventions v1.33.

No open issues 🎉

What changed in this PR

Updates APM Server’s dependencies to support OpenTelemetry database semantic conventions v1.33, addressing database span recognition and destination service resource handling described in #20248.

Changes:

  • Bumps apm-data from v1.22.2 to v1.23.0.
  • Updates indirect dependency opentelemetry-lib from v0.39.0 to v0.49.0 and refreshes checksums.
File Description
go.sum Updates checksums for both upgraded dependencies.
go.mod Selects the new dependency versions.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 5, 2026 00:13

Copilot AI 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.

🟢 Approval recommended

No active review issues are reported for the dependency update adding OpenTelemetry database attribute support.

No open issues 🎉

Review effort: Balanced

Comment thread NOTICE-fips.txt Outdated


--------------------------------------------------------------------------------
Dependency : howett.net/plist

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you check why bumping semconv is adding these deps to the final binary ?

Copilot AI balanced review requested due to automatic review settings November 5, 2026 14:57

Copilot AI 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.

🟢 Approval recommended

No active review issues are reported for the dependency update.

No open issues 🎉

Review effort: Balanced

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

@carsonip carsonip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks. for 9.6 backport please observe FF

@mergify

mergify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@aelnahas
aelnahas added this pull request to the merge queue Nov 5, 2026
Merged via the queue into elastic:main with commit 378a4a7 Nov 5, 2026
27 checks passed
@aelnahas
aelnahas deleted the semconv-133-support branch November 5, 2026 16:11
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.6 9.5 9.4 8.19

@mergify

mergify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

backport 9.6 9.5 9.4 8.19

❌ No backport have been created

Details

Cherry-pick of 378a4a7 has failed:

On branch mergify/bp/9.6/pr-22375
Your branch is up to date with 'origin/9.6'.

You are currently cherry-picking commit 378a4a7.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE-fips.txt
	modified:   NOTICE.txt
	modified:   go.sum

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Cherry-pick of 378a4a7 has failed:

On branch mergify/bp/9.5/pr-22375
Your branch is up to date with 'origin/9.5'.

You are currently cherry-picking commit 378a4a7.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE-fips.txt
	modified:   NOTICE.txt
	modified:   go.sum

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Cherry-pick of 378a4a7 has failed:

On branch mergify/bp/9.4/pr-22375
Your branch is up to date with 'origin/9.4'.

You are currently cherry-picking commit 378a4a7.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE-fips.txt
	modified:   NOTICE.txt
	modified:   go.sum

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

  • Backport to branch 8.19 failed

Git failed in a way that is usually temporary. If this keeps happening, contact Mergify Support.

mergify Bot added a commit that referenced this pull request Nov 5, 2026
* bump apm-data to v1.23.0 (#22375)

* bump apm-data to v1.23.0

* update NOTICE.txt and NOTICE-fips.txt for apm-data v1.23.0 bump

* fix ci lint and NOTICE-fips.txt

(cherry picked from commit 378a4a7)

# Conflicts:
#	go.mod

* Potential fix for pull request finding 'Resolve go.mod merge conflict to restore Go module loading'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ahmed ElNahas <ahmed.elnahas@elastic.co>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
mergify Bot added a commit that referenced this pull request Nov 5, 2026
* bump apm-data to v1.23.0 (#22375)

* bump apm-data to v1.23.0

* update NOTICE.txt and NOTICE-fips.txt for apm-data v1.23.0 bump

* fix ci lint and NOTICE-fips.txt

(cherry picked from commit 378a4a7)

# Conflicts:
#	go.mod

* Potential fix for pull request finding 'Resolve go.mod conflict markers to restore Go builds'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* run go mod tidy

---------

Co-authored-by: Ahmed ElNahas <ahmed.elnahas@elastic.co>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
mergify Bot added a commit that referenced this pull request Nov 5, 2026
* bump apm-data to v1.23.0 (#22375)

* bump apm-data to v1.23.0

* update NOTICE.txt and NOTICE-fips.txt for apm-data v1.23.0 bump

* fix ci lint and NOTICE-fips.txt

(cherry picked from commit 378a4a7)

# Conflicts:
#	go.mod

* fix go mod conflicts

* run go mod tidy

---------

Co-authored-by: Ahmed ElNahas <ahmed.elnahas@elastic.co>
@github-actions github-actions Bot mentioned this pull request Nov 6, 2026
4 tasks
aelnahas added a commit that referenced this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for semconv v1.33

4 participants