// GetContextId extracts the request ID from the given context
GetContextId extracts the request ID from the given context
// GetContextId extracts the request ID from the given context
func GetContextId(ctx context.Context) string {
	id := ctx.Value(ContextKeyID)
	if id == nil {
		id = ctx.Value(DefaultContextKey)
	}
	if id == nil {
		return ""
	}
	return fmt.Sprintf("%v", id)
}
func GetContextId ( ctx context . Context ) string { id := ctx . Value ( ContextKeyID ) if id == nil { id = ctx . Value ( DefaultContextKey ) } if id == nil { return " " } return fmt . Sprintf ( " " , id ) }
GetContextId extracts the request ID from the given context
GetContextId extracts the request ID from the given context
// safely convert the id into a string