Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 595 Bytes

File metadata and controls

30 lines (19 loc) · 595 Bytes

Jaeger

This package contains filter for generating jaeger span

Usage

Importing

import "github.com/AccelByte/go-restful-plugins/v4/pkg/jaeger"

Filter

Filter is restful.FilterFunction for generating jaeger span using zipkin headers

Example usage of filter for all endpoints

    span := GetSpanFromRestfulContext(request.Request.Context())
    
    // to add a tag
    AddTag(span, "exampleTag", "tag_value")

    //to add a baggage item
    AddBaggage(span, "exampleBaggage", "example")

    // to add a log
    AddLog(span, "exampleLog", "example")