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
Convert other integrations to MethodBuilder #494
Merged
lucaspimentel
merged 17 commits into
master
from
lpimentel/use-method-builder-in-all-integrations
Aug 30, 2019
Merged
Convert other integrations to MethodBuilder #494
lucaspimentel
merged 17 commits into
master
from
lpimentel/use-method-builder-in-all-integrations
Aug 30, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lucaspimentel
added
area:automatic-instrumentation
Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed)
type:refactor
labels
Aug 27, 2019
lucaspimentel
changed the title
migrate integrations to newer MethodBuilder`
migrate integrations to newer MethodBuilder API
Aug 27, 2019
src/Datadog.Trace.ClrProfiler.Managed/Integrations/AspNet/AspNetWebApi2Integration.cs
Outdated
Show resolved
Hide resolved
lucaspimentel
added
the
status:work-in-progress
Actively worked on. If this is a PR, no review needed yet. WIP.
label
Aug 27, 2019
lucaspimentel
changed the title
migrate integrations to newer MethodBuilder API
[WIP] migrate integrations to newer MethodBuilder API
Aug 27, 2019
lucaspimentel
added
type:enhancement
Improvement to an existing feature
and removed
type:refactor
labels
Aug 28, 2019
lucaspimentel
changed the title
[WIP] migrate integrations to newer MethodBuilder API
migrate more integrations to newer MethodBuilder
Aug 28, 2019
lucaspimentel
removed
the
status:work-in-progress
Actively worked on. If this is a PR, no review needed yet. WIP.
label
Aug 28, 2019
zacharycmontoya
previously approved these changes
Aug 28, 2019
@@ -22,13 +22,15 @@ public sealed class AspNetCoreMvc2Integration : IDisposable | |||
/// <summary> | |||
/// Type for unobtrusive hooking into Microsoft.AspNetCore.Mvc.Core pipeline. | |||
/// </summary> | |||
private const string DiagnosticSource = "Microsoft.AspNetCore.Mvc.Internal.MvcCoreDiagnosticSourceExtensions"; | |||
private const string DiagnosticSourceTypeName = "Microsoft.AspNetCore.Mvc.Internal.MvcCoreDiagnosticSourceExtensions"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the TypeName
postfix for clarity, I'm going to adopt that.
src/Datadog.Trace.ClrProfiler.Managed/Integrations/AspNet/AspNetCoreMvc2Integration.cs
Show resolved
Hide resolved
src/Datadog.Trace.ClrProfiler.Managed/Integrations/AspNet/AspNetMvcIntegration.cs
Outdated
Show resolved
Hide resolved
src/Datadog.Trace.ClrProfiler.Managed/Integrations/AspNet/AspNetWebApi2Integration.cs
Outdated
Show resolved
Hide resolved
src/Datadog.Trace.ClrProfiler.Managed/Integrations/AspNet/AspNetCoreMvc2Integration.cs
Show resolved
Hide resolved
zacharycmontoya
approved these changes
Aug 29, 2019
colin-higgins
approved these changes
Aug 30, 2019
lucaspimentel
deleted the
lpimentel/use-method-builder-in-all-integrations
branch
August 30, 2019 14:03
lucaspimentel
changed the title
migrate more integrations to newer MethodBuilder
Convert others integrations to MethodBuilder
Sep 3, 2019
lucaspimentel
changed the title
Convert others integrations to MethodBuilder
Convert other integrations to MethodBuilder
Sep 3, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:automatic-instrumentation
Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed)
type:enhancement
Improvement to an existing feature
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request:
MethodBuilder
to emit dynamic ILMethodBuilder.WithConcreteType(Type)
instead ofMethodBuilder.WithConcreteTypeName(string)
MethodBuilder.WithConcreteTypeName(string)
dynamic
keyword