Package

com.twitter.finagle.thrift

thriftscala

Permalink

package thriftscala

Visibility
  1. Public
  2. All

Type Members

  1. trait Annotation extends ThriftStruct with Product3[Long, String, Option[Endpoint]] with Serializable

    Permalink
  2. sealed trait AnnotationType extends ThriftEnum with Serializable

    Permalink
    Annotations
    @Generated()
  3. trait BinaryAnnotation extends ThriftStruct with Product4[String, ByteBuffer, AnnotationType, Option[Endpoint]] with Serializable

    Permalink
  4. trait ClientId extends ThriftStruct with Product1[String] with Serializable

    Permalink
  5. trait ConnectionOptions extends ThriftStruct with Product with Serializable

    Permalink
  6. trait Delegation extends ThriftStruct with Product2[String, String] with Serializable

    Permalink
  7. trait Endpoint extends ThriftStruct with Product3[Int, Short, String] with Serializable

    Permalink
  8. trait RequestContext extends ThriftStruct with Product2[ByteBuffer, ByteBuffer] with Serializable

    Permalink
  9. trait RequestHeader extends ThriftStruct with Product9[Long, Long, Option[Long], Option[Boolean], Option[ClientId], Option[Long], Seq[RequestContext], Option[String], Option[Seq[Delegation]]] with Serializable

    Permalink
  10. trait ResponseHeader extends ThriftStruct with Product2[Seq[Span], Seq[RequestContext]] with Serializable

    Permalink
  11. trait Span extends ThriftStruct with Product7[Long, String, Long, Option[Long], Seq[Annotation], Seq[BinaryAnnotation], Boolean] with Serializable

    Permalink
  12. trait UpgradeReply extends ThriftStruct with Product with Serializable

    Permalink

Value Members

  1. object Annotation extends ThriftStructCodec3[Annotation] with Serializable

    Permalink

    An annotation is similar to a log statement.

    An annotation is similar to a log statement. It includes a host field which allows these events to be attributed properly, and also aggregatable.

  2. object AnnotationType extends Product with Serializable

    Permalink
    Annotations
    @Generated()
  3. object BinaryAnnotation extends ThriftStructCodec3[BinaryAnnotation] with Serializable

    Permalink

    Binary annotations are tags applied to a Span to give it context.

    Binary annotations are tags applied to a Span to give it context. For example, a binary annotation of "http.uri" could the path to a resource in a RPC call.

    Binary annotations of type STRING are always queryable, though more a historical implementation detail than a structural concern.

    Binary annotations can repeat, and vary on the host. Similar to Annotation, the host indicates who logged the event. This allows you to tell the difference between the client and server side of the same key. For example, the key "http.uri" might be different on the client and server side due to rewriting, like "/api/v1/myresource" vs "/myresource. Via the host field, you can see the different points of view, which often help in debugging.

  4. object ClientId extends ThriftStructCodec3[ClientId] with Serializable

    Permalink

    At connection time, we can let the server know who we are so they can book keep and optionally reject unknown clients.

  5. object ConnectionOptions extends ThriftStructCodec3[ConnectionOptions] with Serializable

    Permalink

    These are connection-level options negotiated during protocol upgrade.

  6. object Constants

    Permalink
    Annotations
    @Generated()
  7. object Delegation extends ThriftStructCodec3[Delegation] with Serializable

    Permalink

    Serializes an individual delegation.

  8. object Endpoint extends ThriftStructCodec3[Endpoint] with Serializable

    Permalink

    Indicates the network context of a service recording an annotation with two exceptions.

    Indicates the network context of a service recording an annotation with two exceptions.

    When a BinaryAnnotation, and key is CLIENT_ADDR or SERVER_ADDR, the endpoint indicates the source or destination of an RPC. This exception allows zipkin to display network context of uninstrumented services, or clients such as web browsers.

  9. object RequestContext extends ThriftStructCodec3[RequestContext] with Serializable

    Permalink

    This struct serializes com.twitter.finagle.Context

  10. object RequestHeader extends ThriftStructCodec3[RequestHeader] with Serializable

    Permalink

    RequestHeader defines headers for the request.

    RequestHeader defines headers for the request. These carry the span data, and a flag indicating whether the request is to be debugged.

  11. object ResponseHeader extends ThriftStructCodec3[ResponseHeader] with Serializable

    Permalink

    The Response carries a reply header for tracing.

    The Response carries a reply header for tracing. These are empty unless the request is being debugged, in which case a transcript is copied.

  12. object Span extends ThriftStructCodec3[Span] with Serializable

    Permalink

    A trace is a series of spans (often RPC calls) which form a latency tree.

    A trace is a series of spans (often RPC calls) which form a latency tree.

    The root span is where trace_id = id and parent_id = Nil. The root span is usually the longest interval in the trace, starting with a SERVER_RECV annotation and ending with a SERVER_SEND.

  13. object UpgradeReply extends ThriftStructCodec3[UpgradeReply] with Serializable

    Permalink

    This is the struct that a successful upgrade will reply with.

Ungrouped