Giter Site home page Giter Site logo

Can't Compile finagle-zipkin about finagle HOT 12 CLOSED

twitter avatar twitter commented on May 6, 2024
Can't Compile finagle-zipkin

from finagle.

Comments (12)

johanoskarsson avatar johanoskarsson commented on May 6, 2024

Hey @mosesn,

First off, thanks for looking into Zipkin.

I'm not sure I get what you're trying to do. Is there a reason the original build files (Project.scala, build.sbt and plugins.sbt) don't work for you?

from finagle.

mosesn avatar mosesn commented on May 6, 2024

I'm trying to compile just finagle-zipkin, so that I can include it in another project like so:

libraryDependencies += "com.twitter" %% "finagle-zipkin" "1.0-SNAPSHOT"

and then fetch it from my local repository. If I try to publish-local using the original build files, I get all of finagle in my local repo, which is not what I want. Also, the reason I am trying to publish-local in the first place instead of fetching from twttr is that I ran into problems with compatibility that I'm betting are because finagle-zipkin isn't cross-compiled on twttr.

from finagle.

johanoskarsson avatar johanoskarsson commented on May 6, 2024

Aha, I see. Are there parts of finagle-zipkin you need but you don't need finagle-core and finagle-thrift? If there's a good reason to split that up further to make it easier we can consider it. For finagle-zipkin as a whole to function it needs finagle-thrift in order to send the data to the Zipkin collectors.

from finagle.

mosesn avatar mosesn commented on May 6, 2024

I am working with a slightly hacked version of finagle that is current up to 3.0.0. Since the API for finagle hasn't changed since then, it seemed like it would be fine as long as I compiled it to the same version of scala. The only problem is that finagle-zipkin didn't exist back in the day.

from finagle.

johanoskarsson avatar johanoskarsson commented on May 6, 2024

I can't remember exact versions but it's possible that it was called finagle-b3 back then. It's basically the same, we had to rename the project before open sourcing Zipkin.

from finagle.

mosesn avatar mosesn commented on May 6, 2024

are you saying that I can find a ZipkinTracer in finagle-b3?

from finagle.

johanoskarsson avatar johanoskarsson commented on May 6, 2024

You can find the equivalent in there. finagle-b3 has something called BigBrotherBirdTracer, that was the name for ZipkinTracer before. It might have some small differences though, such as it uses a different Scribe category. I assume it's not possible for you to contribute your Finagle changes and upgrade to the latest version?

from finagle.

mosesn avatar mosesn commented on May 6, 2024

I don't know what all of the changes are, I'll talk to someone who does and see what's up. In the mean time, do you know why I can't find scribe.ServiceToClient? It seems to be something that your thrift can do, based on #45, but it can't be done with scrooge, as far as I can tell.

from finagle.

johanoskarsson avatar johanoskarsson commented on May 6, 2024

I believe that stuff is part of the generated code that sbt-thrift creates.

from finagle.

mosesn avatar mosesn commented on May 6, 2024

Is sbt-thrift compatible with build.sbt?

from finagle.

johanoskarsson avatar johanoskarsson commented on May 6, 2024

To be honest I don't know. I think it might be easier to just use finagle-b3 until you upgrade and either change the category there or just change the zipkin collector config to allow the b3 collector: var categories: Set[String] = Set("b3") or similar.

from finagle.

mosesn avatar mosesn commented on May 6, 2024

Alright, good to know. I'm working on getting us upgraded to what's current, so probably at least one of these will pan out. Thanks for the help!

from finagle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.