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

pickle support for the GraphiteReporter #536

Closed
wants to merge 3 commits into from

Conversation

samperman
Copy link

This is based on https://github.com/BrightcoveOS/metrics-graphite-pickle but refactored for
metrics 3.

writer.write(payload);
writer.flush();
} catch (Exception e) {
if (LOGGER.isDebugEnabled()) {

Choose a reason for hiding this comment

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

Update this.failures.

Choose a reason for hiding this comment

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

The default Graphite client doesn't log anything itself. It simply counts failures and re-throws.

@Iker-Jimenez
Copy link

This is very useful for us too. Any chance getting this merged or at least looked at?

@ryantenney
Copy link
Contributor

It has been looked at. I'm in favor of this however I do need a chance to review the code further and test it. I do have concerns about extending GraphiteReporter, so perhaps I'll refactor that. (In any event, the fields should be protected, not package-private)

@samperman
Copy link
Author

The biggest reason I extended Graphite was to avoid changing GraphiteReporter. I suppose we could create an interface that Graphite and PickledGraphite both implement, that GraphiteReporter could use. Is that the refactor you were considering?

@samperman
Copy link
Author

Hi, just checking in to see if there was anything else you want me to do on this PR.

@ryantenney
Copy link
Contributor

Nothing at the moment. It will almost certainly be accepted, but v4 is a ways off and I'm pretty busy at the moment.

@ryantenney ryantenney added this to the 4.0.0 milestone Apr 15, 2014
@jspiewak
Copy link

This won't make it into a 3.x release?

@ryantenney
Copy link
Contributor

No, barring a catastrophic bug there will be no further v3 releases. However due to the nature of reporters it is trivial to separate it out into a new project/include it in your own codebase.

@jspiewak
Copy link

I think @samperman hoped that he could move away from that with 3.x

@samperman
Copy link
Author

Part of this pull request was to relax some of the visibility of the metrics internals... so its a little more than trivial to have a separate project (unless I copy and paste the entire Graphite class)

@ryantenney
Copy link
Contributor

True. I'll seriously consider a 3.1 release, however it still wouldn't be out for a while.

@ryantenney ryantenney modified the milestones: 4.0.0, 3.1.0 Aug 11, 2014
@ryantenney
Copy link
Contributor

Moving to #639

@ryantenney ryantenney closed this Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants