Documentation ¶
Overview ¶
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TraceableContext ¶
TraceableContext contains a stack which holds the sentry span context information. Not thread safe.
func NewTraceableContext ¶
func NewTraceableContext(ctx context.Context) *TraceableContext
NewTraceableContext return a traceable context which can hold different level of span information. This function Should be called in the upper layer only (handler, middleware...) and the lower layer reuse this context to create a hierarchy span tree.
func (*TraceableContext) Pop ¶
func (c *TraceableContext) Pop() context.Context
func (*TraceableContext) Push ¶
func (c *TraceableContext) Push(ctx context.Context)