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

[Instrumentation.MassTransit] Masstransit enricher #696

Conversation

nicolasderycke
Copy link

Added enricher for Masstransit activity

@nicolasderycke nicolasderycke requested a review from a team October 14, 2022 06:59
@nicolasderycke nicolasderycke changed the title Masstransit enricher [Instrumentation.MassTransit] Masstransit enricher Oct 14, 2022
@nicolasderycke
Copy link
Author

@cijothomas : I created a new pull request with the latest version in it.
Is it possible to review this?

@utpilla utpilla added the comp:instrumentation.masstransit Things related to OpenTelemetry.Instrumentation.MassTransit label Oct 14, 2022
@utpilla
Copy link
Contributor

utpilla commented Oct 18, 2022

Adding @alexvaluyskiy, who is the component owner to review the PR.

.AddMassTransitInstrumentation(options =>
{
// Enable enriching an activity after it is created.
options.Enrich = (activity, eventName, rawObject) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

An example that actually makes use of the rawObject passed would be more helpful.


try
{
this.options.Enrich?.Invoke(activity, "OnStartActivity", payload);
Copy link
Member

Choose a reason for hiding this comment

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

we are moving to a new approach wherever feasible: open-telemetry/opentelemetry-dotnet#3792

Please check this, and see if this can be done here too.

Copy link
Contributor

@Kielek Kielek Nov 24, 2022

Choose a reason for hiding this comment

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

@nicolasderycke, I see some new commits after Cijo comments, but I think that you have missed part of this.
In Http instrumentation there where one Enrichment method which returns in callback string with the event name (OnStartActivity, OnStopActivity, OnException).

After changes we have 3 separate methods

        options.EnrichWithHttpRequestMessage
        options.EnrichWithHttpResponseMessage 
        options.EnrichWithException

Any chance to introduce something like that here?

Copy link
Contributor

Choose a reason for hiding this comment

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

@nicolasderycke Are you working on these suggestions?

Copy link
Author

Choose a reason for hiding this comment

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

I will review these comments this week

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 2, 2022
@github-actions github-actions bot removed the Stale label Nov 3, 2022
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 14, 2022
@github-actions github-actions bot removed the Stale label Nov 15, 2022
@codecov
Copy link

codecov bot commented Nov 18, 2022

Codecov Report

Merging #696 (50dbae7) into main (9e43648) will increase coverage by 0.11%.
The diff coverage is 90.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #696      +/-   ##
==========================================
+ Coverage   77.87%   77.98%   +0.11%     
==========================================
  Files         176      176              
  Lines        5301     5305       +4     
==========================================
+ Hits         4128     4137       +9     
+ Misses       1173     1168       -5     
Impacted Files Coverage Δ
...mentation/MassTransitInstrumentationEventSource.cs 100.00% <ø> (+62.50%) ⬆️
...it/Implementation/MassTransitDiagnosticListener.cs 94.31% <85.71%> (+0.41%) ⬆️
...n.MassTransit/MassTransitInstrumentationOptions.cs 100.00% <100.00%> (ø)

@Kielek
Copy link
Contributor

Kielek commented Nov 24, 2022

@nicolasderycke, we have a request from MassTransit maintaners to deprecate package as it is not needed any longer if you are using MassTransit 8.0.0+. We would like to do it shortly.

We could make one more release for older versions with these changes if needed. What is your opinion about it?

PR to deprecate package #788.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2022

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 2, 2022
@github-actions github-actions bot removed the Stale label Dec 3, 2022
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 13, 2022
@github-actions github-actions bot removed the Stale label Dec 14, 2022
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 23, 2022
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.masstransit Things related to OpenTelemetry.Instrumentation.MassTransit Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants