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

Add config allowing classes to be excluded from transformation #807

Merged
merged 2 commits into from Apr 23, 2019

Conversation

tylerbenson
Copy link
Contributor

Add the following system property or corresponding environment variable:

dd.trace.classes.exclude=some.packagename.*,some.classname.MyClass$NestedClass

Add the following system property or corresponding environment variable:
```
dd.trace.classes.exclude=some.packagename.*,some.classname.MyClass$NestedClass
```
@tylerbenson tylerbenson added this to the 0.27.0 milestone Apr 19, 2019
Copy link
Member

@labbati labbati left a comment

Choose a reason for hiding this comment

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

Added a couple of questions but I this this is good to go in either case

addDecorator(decorator);
}

registerClassLoader(ClassLoader.getSystemClassLoader());
Copy link
Member

Choose a reason for hiding this comment

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

Is this line related to this PR or a left over?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a very minor change intended to improve comprehension of log statement order. I'll try to reduce unrelated changes in PRs going forward.

@@ -42,6 +38,7 @@ public void handle(final Context ctx) {
DECORATE.afterStart(ratpackSpan);
DECORATE.onConnection(ratpackSpan, request);
DECORATE.onRequest(ratpackSpan, request);
ctx.getExecution().add(ratpackSpan);
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this LOC is related to this PR right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I slipped in a few other misc changes.

public FluxAndMonoInstrumentation() {
super("reactor-core");
}

@Override
public String[] helperClassNames() {
return new String[] {
PACKAGE + ".ReactorCoreAdviceUtils", PACKAGE + ".ReactorCoreAdviceUtils$TracingSubscriber"
packageName + ".ReactorCoreAdviceUtils",
Copy link
Member

Choose a reason for hiding this comment

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

I don't think these LOCs are related to this PR?

@tylerbenson tylerbenson merged commit 03f44bd into master Apr 23, 2019
@tylerbenson tylerbenson deleted the tyler/exclude-config branch April 23, 2019 17:37
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

2 participants