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

Limit MassTransit v7 support to 7.1.0 and higher #2024

Conversation

nr-ahemsath
Copy link
Member

Description

Testing has shown behavioral differences in MassTransit 7.0.x versions that cause integration test failures. This PR updates the 7.x instrumentation file for MT to restrict matching to 7.1.0 and higher. The integration tests are updated to test 7.1.0 as the earliest version.

This also contains an improvement to how the ConsoleMF test application logs its output, adding millisecond-level timing info and the current managed thread ID (to help troubleshoot async thread hopping issues).

Author Checklist

  • Unit tests, Integration tests, and Unbounded tests completed
  • Performance testing completed with satisfactory results (if required)

Reviewer Checklist

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)

Not quite working, integration tests are failing for StartBus with v7.0.0 due to transaction scope oddness
Added millisecond-level timestamps and thread id
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (feature/auto-instrument-masstransit@760f41c). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                          Coverage Diff                           @@
##             feature/auto-instrument-masstransit    #2024   +/-   ##
======================================================================
  Coverage                                       ?   80.43%           
======================================================================
  Files                                          ?      402           
  Lines                                          ?    24628           
  Branches                                       ?     2960           
======================================================================
  Hits                                           ?    19810           
  Misses                                         ?     4039           
  Partials                                       ?      779           

@nr-ahemsath nr-ahemsath merged commit c645b4c into feature/auto-instrument-masstransit Nov 2, 2023
77 checks passed
@nr-ahemsath nr-ahemsath deleted the feature-work/better-masstransit-v7-instrumentation-versioning branch November 2, 2023 20:40
nr-ahemsath added a commit that referenced this pull request Nov 3, 2023
…#1972)

* Add auto-instrumentation for MassTransit v7 and v8.

* Update RabbitMQ HandleBasicDeliver instrumentation

* Clean up POC branch (#1970)

* Add integration tests for MassTransit (#2014)

* 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>

* Limit MassTransit v7 support to 7.1.0 and higher (#2024)

* 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

* Fix merge issues

* Fix more merge mistakes

---------

Co-authored-by: Jacob Affinito <jaffinito@newrelic.com>
Co-authored-by: Chris Hynes <111462425+chynesNR@users.noreply.github.com>
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.

None yet

6 participants