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 ValidatingThriftStruct[Annotation] with Serializable

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.Annotation.apply for construction if you don't need to specify passthrough fields.

  2. sealed trait AnnotationType extends ThriftEnum with Serializable

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.BinaryAnnotation.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.ClientId.apply for construction if you don't need to specify passthrough fields.

  5. trait ConnectionOptions extends ThriftStruct with Product with ValidatingThriftStruct[ConnectionOptions] with Serializable

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.ConnectionOptions.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.Delegation.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.Endpoint.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.RequestContext.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.RequestHeader.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.ResponseHeader.apply for construction if you don't need to specify passthrough fields.

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

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.Span.apply for construction if you don't need to specify passthrough fields.

  12. trait UpgradeReply extends ThriftStruct with Product with ValidatingThriftStruct[UpgradeReply] with Serializable

    Permalink

    Prefer the companion object's com.twitter.finagle.thrift.thriftscala.UpgradeReply.apply for construction if you don't need to specify passthrough fields.

Value Members

  1. object Annotation extends ValidatingThriftStructCodec3[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 ThriftEnumObject[AnnotationType] with Product with Serializable

    Permalink
    Annotations
    @Generated()
  3. object BinaryAnnotation extends ValidatingThriftStructCodec3[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 ValidatingThriftStructCodec3[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 ValidatingThriftStructCodec3[ConnectionOptions] with Serializable

    Permalink

    These are connection-level options negotiated during protocol upgrade.

  6. object Constants

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

    Permalink

    Serializes an individual delegation.

  8. object Endpoint extends ValidatingThriftStructCodec3[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 ValidatingThriftStructCodec3[RequestContext] with Serializable

    Permalink

    This struct serializes com.twitter.finagle.Context

  10. object RequestHeader extends ValidatingThriftStructCodec3[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 ValidatingThriftStructCodec3[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 ValidatingThriftStructCodec3[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 ValidatingThriftStructCodec3[UpgradeReply] with Serializable

    Permalink

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

Ungrouped