Skip to content

feat: add service target fields support to sql module#1279

Merged
kruskall merged 4 commits intoelastic:mainfrom
kruskall:feat/service-target-sql-module
Aug 1, 2022
Merged

feat: add service target fields support to sql module#1279
kruskall merged 4 commits intoelastic:mainfrom
kruskall:feat/service-target-sql-module

Conversation

@kruskall
Copy link
Member

Sets service target fields for services using the
sql module.

See https://github.com/elastic/apm/blob/main/specs/agents/tracing-instrumentation-db.md#sql-databases

@ghost
Copy link

ghost commented Jul 28, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-01T03:41:58.561+0000

  • Duration: 48 min 42 sec

Test stats 🧪

Test Results
Failed 0
Passed 7475
Skipped 174
Total 7649

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

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

Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

Code looks good - please add a test :)

@ghost
Copy link

ghost commented Jul 29, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (59/59) 💚
Files 99.346% (152/153) 👍
Classes 96.275% (336/349) 👍 0.561
Methods 90.198% (957/1061) 👍 0.179
Lines 82.187% (11129/13541) 👍 0.242
Conditionals 100.0% (0/0) 💚
@kruskall kruskall requested a review from axw July 29, 2022 21:57
Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@kruskall kruskall merged commit 65c2f07 into elastic:main Aug 1, 2022
@kruskall kruskall deleted the feat/service-target-sql-module branch August 1, 2022 04:42
v1v added a commit to v1v/apm-agent-go that referenced this pull request Sep 1, 2022
…hmark-reporting

* upstream/main: (25 commits)
  docs: update correct env flag for loglevel (elastic#1299)
  fix: readd deprecated span_frames_min_duration option as fallback for older configuration (elastic#1297)
  feat: rename span_frames_min_duration to span_stack_trace_min_duration (elastic#1285)
  test: verify Ubuntu cgroup line parsing for container ID (elastic#1293)
  tracer: Parse global labels per tracer (elastic#1290)
  feat: update sns span.name to reflect the current spec (elastic#1286)
  fix: expand k8s pod discovery regex (elastic#1288)
  test: add testcase for sqs delete_batch operation (elastic#1283)
  docs: document ELASTIC_APM_SERVER_CA_CERT_FILE (elastic#1289)
  fix: reformat code with go 1.19 to fix ci failure  (elastic#1284)
  feat: add service target fields support to elasticsearch module (elastic#1281)
  fix: use the correct destination resource and name for azure queue (elastic#1282)
  feat: add service target fields support to azure module (elastic#1280)
  feat: add service target fields support to aws module (elastic#1278)
  feat: add service target fields support to sql module (elastic#1279)
  synchronize json schema specs (elastic#1260)
  fix: make sure at least one of the service target fields is sent (elastic#1277)
  docs: add link to release-notes-2.x (elastic#1271)
  feat: add service target fields (elastic#1274)
  perf: skip tracestate regex validation for es vendor key (elastic#1275)
  ...
@axw
Copy link
Member

axw commented Oct 17, 2022

Tested with postgresql (pq), sending data to an 8.5.0-BC5 deployment - looks good. service.target.name ("test_db" in my test) is set to the database name, and service.target.type is set to the database vendor ("postgresql" in my test). These both show up in the `service_destination metrics:

image

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

Labels

2 participants