Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get transaction name from Web API controller route template #1189

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Feb 19, 2021

This commit updates ElasticApmModule to get the transaction
name for a Web API controller routed with attribute routing
from the "MS_SubRoutes" route data value.

A delegate to get the template from IHttpRouteData when
System.Web.Http is referenced.

Closes #1176

@russcam russcam added enhancement New feature or request v1.9.0 labels Feb 19, 2021
@russcam russcam requested a review from gregkalapos February 19, 2021 00:55
@apmmachine
Copy link
Contributor

apmmachine commented Feb 19, 2021

💚 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

Expand to view the summary

Build stats

  • Build Cause: Pull request #1189 updated

  • Start Time: 2021-03-09T00:19:22.771+0000

  • Duration: 74 min 7 sec

  • Commit: 93c162a

Test stats 🧪

Test Results
Failed 0
Passed 18763
Skipped 76
Total 18839

Trends 🧪

Image of Build Times

Image of Tests

Copy link
Contributor

@gregkalapos gregkalapos left a comment

Choose a reason for hiding this comment

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

LGTM

This commit updates ElasticApmModule to get the transaction
name for a Web API controller routed with attribute routing
from the "MS_SubRoutes" route data value.

A delegate to get the template from IHttpRouteData when
System.Web.Http is referenced.

Closes elastic#1176
@russcam russcam force-pushed the feature/web-api-sub-route branch from bcabfea to b1fb135 Compare March 8, 2021 06:18
@codecov-io
Copy link

Codecov Report

Merging #1189 (93c162a) into master (c605d6f) will decrease coverage by 0.13%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1189      +/-   ##
==========================================
- Coverage   81.49%   81.35%   -0.14%     
==========================================
  Files         163      164       +1     
  Lines        6836     6844       +8     
==========================================
- Hits         5571     5568       -3     
- Misses       1265     1276      +11     
Impacted Files Coverage Δ
src/Elastic.Apm/Reflection/ExpressionBuilder.cs 0.00% <0.00%> (ø)
...c.Apm/Metrics/MetricsProvider/GcMetricsProvider.cs 63.41% <0.00%> (-1.83%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c605d6f...93c162a. Read the comment docs.

@russcam russcam merged commit 01deb0f into elastic:master Mar 9, 2021
@russcam russcam deleted the feature/web-api-sub-route branch March 9, 2021 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MS_SubRoutes are not affecting Transaction names.
4 participants