func GetRecorder(ctx context.Context) *Config {
	if r, ok := ctx.Value(RecorderContextKey{}).(*Config); ok {
		return r
	}
	if r, ok := ctx.Value(fasthttpContextConfigKey).(*Config); ok {
		return r
	}
	return nil
}
GetRecorder returns a pointer to the config struct provided
in ctx, or nil if no config is set.
package xray
import (
	"context"
	"errors"
)
type ContextKeytype int
var ContextKey = new(ContextKeytype)
var ErrRetrieveSegment = errors.New("unable to retrieve segment")
type RecorderContextKey struct{}
const (
	fasthttpContextKey = "xray-ck"
	fasthttpContextConfigKey = "xray-rck"
)