Skip to content

Instrument HystrixCommand and HystrixThreadPool#306

Merged
tylerbenson merged 3 commits into
masterfrom
tyler/hystrix
May 6, 2018
Merged

Instrument HystrixCommand and HystrixThreadPool#306
tylerbenson merged 3 commits into
masterfrom
tyler/hystrix

Conversation

@tylerbenson
Copy link
Copy Markdown
Contributor

1.3.15 was the version they added HystrixContextScheduler$ThreadPoolWorker.

I also added a new DSL for asserting traces inside the tests. We can slowly migrate other tests as desired.

@tylerbenson tylerbenson added comp: testing Testing inst: others All other instrumentations labels May 3, 2018
@tylerbenson tylerbenson added this to the 0.8.0 milestone May 3, 2018
@tylerbenson tylerbenson requested a review from realark May 3, 2018 02:38
@tylerbenson tylerbenson force-pushed the tyler/agent-installer branch from c3e22c7 to 84b7080 Compare May 3, 2018 03:04
@tylerbenson tylerbenson force-pushed the tyler/hystrix branch 2 times, most recently from 07a66d7 to be55fc7 Compare May 3, 2018 03:34
@tylerbenson tylerbenson changed the base branch from tyler/agent-installer to master May 3, 2018 03:36
Copy link
Copy Markdown
Contributor Author

@tylerbenson tylerbenson May 3, 2018

Choose a reason for hiding this comment

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

@realark do you think we want to allow instrumenting proxy classes?
(This isn't related to hystrix, but to the JMS tests.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm okay with instrumenting proxy classes, but usually the instrumentation fails to apply because the proxy class has no source code (for type checking etc).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we use a static name for the operation name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This follows the same semantic of @Trace. If we want to change it here, it should be changed with @Trace too.

Copy link
Copy Markdown
Contributor

@realark realark 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, nice work!

My only concern is the operationName of the trace instrumentation. It's doing the same thing as @Trace, but this instrumentation could expose that problem because it will apply by default (rather than a user going out of their way to add @Trace).

Since the instrumentation is disabled by default I'm okay with merging, but we'll have to figure out an approach to operationName before we turn it on by default.

@tylerbenson tylerbenson merged commit 2852bee into master May 6, 2018
@tylerbenson tylerbenson deleted the tyler/hystrix branch May 6, 2018 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: testing Testing inst: others All other instrumentations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants