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

Refactored Zipkin Proxy artifacts #33

Closed
wants to merge 1 commit into from

Conversation

saturnism
Copy link
Collaborator

@saturnism saturnism commented Mar 24, 2017

  • moved EnableStackdriverCollector to the autoconfigure module
  • created a starter pom.xml so that others can build their own collector (and override things like Credentials easily)
  • changed the resolution of projectId property
  • configured dependency versions via dependency management

- created a starter pom.xml so that others can build their own collector (and override things like Credentials easily)
- changed the resolution of projectId property
@saturnism
Copy link
Collaborator Author

Rebased to the latest commits. Previous one had too many merge conflicts.

from @adriancole #32

ps it has been my experience that making ad-hoc servers ends up as a support burden, as there's rarely a reason to create a custom server. starters are usually a means to create custom servers... are you sure you want to do this?

The primary needs here is to be able to override the production of Credential. In different env, we need to create this differently.

currently, we are using the "module" approach when creating custom servers, so it still ends up something that needs no custom build, rather composition at runtime.. like this: https://github.com/openzipkin/zipkin-aws/tree/master/autoconfigure/collector-sqs#running

I noticed autoconfigure-storage was pulled into its own artifact. Is this what you are referring to? That could help. But EnableStackdriverCollector is still in collector. What's the use there?

If we want to bring the tomcat changes needed upstream to support that, seems great to me..
Not sure what Tomcat is referred to.

@saturnism
Copy link
Collaborator Author

/cc @joshlong

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Mar 24, 2017 via email

import org.springframework.context.annotation.Import;
import zipkin.server.ZipkinHttpCollector;
import zipkin.server.ZipkinServerConfiguration;

import java.lang.annotation.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

please rollback non-essential change

@saturnism
Copy link
Collaborator Author

saturnism commented Apr 6, 2017

hiya sorry been pretty busy. not following most of the comments since the formatting seems off. I guess the easier way is - what do you recommend so that we can override the creation of the Credential object? https://github.com/GoogleCloudPlatform/stackdriver-zipkin/blob/master/autoconfigure-storage/src/main/java/com/google/cloud/trace/zipkin/autoconfigure/ZipkinStackdriverStorageAutoConfiguration.java#L85

Perhaps a sample project would help. We speak of a stock server - but I think our Zipkin server is pretty much non-stock, w/ our own EnableStackdriverCollector annotation, and additional property of stackdriver.trace.zipkin.agent.

Secondly, injecting a String for ProjectID seemed not Spring'ish and should probably be moved into properties?

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Apr 6, 2017 via email

@codefromthecrypt
Copy link
Member

here's an alternative which fits into the ecosystem well. I've discussed this with others in the spring cloud team as well #36

@bogdandrutu
Copy link

How can I help to get this merged?

@codefromthecrypt
Copy link
Member

@bogdandrutu so we have a way to bolt-on things like this on existing servers (which allow easier custom images whether that's docker or chef or whatever)
https://github.com/openzipkin/zipkin-aws#step-1-download-zipkin-server-jar

just needs focus to do it

@codefromthecrypt
Copy link
Member

fyi haven't forgotten about this once #44 is in, I believe we can convert the collector to a normal plugin (aka module)

@bogdandrutu
Copy link

Is this still needed?

@codefromthecrypt
Copy link
Member

this will be done differently once other things are merged, so let's close it?

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.

4 participants