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

feat: Add automatic instrumentation of MassTransit clients v7 and v8. #1972

Merged
merged 8 commits into from Nov 3, 2023

Conversation

nr-ahemsath
Copy link
Member

@nr-ahemsath nr-ahemsath commented Oct 12, 2023

Description

Resolves #1282 by adding automatic instrumentation of MassTransit clients v7 and v8, for both .NET Framework and .NET Core/6+ applications.

Reminder: when this is merged, make sure to include a changelog entry for the RabbitMQ instrumentation changes.
Use the "summary" format where the main squash commit message looks like summary: {overall feature description} and then add individual feat (or fix, chore, etc.) lines in the extended description. Include the line below for RabbitMQ:

feat: Update RabbitMQ instrumentation to capture more message consumption scenarios.

BEGIN_COMMIT_OVERRIDE
feat: Add automatic instrumentation of MassTransit clients v7.1.0 and newer. #1282
feat: Update RabbitMQ instrumentation to capture more message consumption scenarios.
END_COMMIT_OVERRIDE

@codecov-commenter
Copy link

codecov-commenter commented Oct 12, 2023

Codecov Report

Merging #1972 (1d8738d) into main (14c6bb1) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1972      +/-   ##
==========================================
- Coverage   80.22%   80.22%   -0.01%     
==========================================
  Files         404      404              
  Lines       24927    24932       +5     
  Branches     3003     3003              
==========================================
+ Hits        19998    20001       +3     
- Misses       4143     4146       +3     
+ Partials      786      785       -1     
Files Coverage Δ
.../NewRelic/Agent/Core/Utilities/ExtensionsLoader.cs 16.55% <0.00%> (-0.60%) ⬇️

... and 4 files with indirect coverage changes

nr-ahemsath and others added 2 commits October 27, 2023 09:30
* Initial exerciser implementation

* Cleanup

* Build works for all TFMS

* Add legacy (7.x) exerciser

Also cleanup, and rename start/stop methods

* Unify v7/v8 exercisers

Also pass in queue name as a parameter to StartBus to help with test assertions

* Implement send

* Adding alternate instrumentation point and first pass at tests (#2001)

* Checkpoint trying to get hosted service model working for v7

* Message consume is working in v7!

* Add instrumentation project readmes

* Added regex scope, tests are passing

* Test send as well as publish; cleanup

* Expanded tests, updated instrumentation for v7

* Make regex metric name assertions more specific

---------

Co-authored-by: Chris Hynes <111462425+chynesNR@users.noreply.github.com>
* Updated 7x instrumentation with version ranges

Not quite working, integration tests are failing for StartBus with v7.0.0 due to transaction scope oddness

* Tweak names

* Better ConsoleMF logging

Added millisecond-level timestamps and thread id

* Only support 7.1.0 -> 7.3.1

* Actually make Tid a property

* Enable MassTransit integration tests

* Fix bug with transaction leakage

* Also detach from primary in 8.x filter

* Update project dependencies
@nr-ahemsath nr-ahemsath marked this pull request as ready for review November 2, 2023 20:55
@nr-ahemsath nr-ahemsath requested a review from a team as a code owner November 2, 2023 20:55
Copy link
Member

@tippmar-nr tippmar-nr left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic Instrumentation & Distributed Tracing for MassTransit
6 participants