tracerctx

package
v0.0.0-...-a3c466b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: GPL-2.0, GPL-2.0-or-later Imports: 12 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-2.0-or-later

  • Copyright (C) 2022 VMware, Inc. Enyinna Ochulor <eochulor@vmware.com>
  • Copyright (C) 2022 VMware, Inc. Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> *
  • Backend handlers of the tracer REST API.

SPDX-License-Identifier: GPL-2.0-or-later

  • Copyright (C) 2022 VMware, Inc. Enyinna Ochulor <eochulor@vmware.com>
  • Copyright (C) 2022 VMware, Inc. Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> *
  • In-memory database with all currently configured tracing sessions.

SPDX-License-Identifier: GPL-2.0-or-later

  • Copyright (C) 2022 VMware, Inc. Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> *
  • Implementation of the common tracer context, used to tie together all su

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(ctx context.Context, cfg *TracerConfig) (*Tracer, error)

func (*Tracer) Destroy

func (t *Tracer) Destroy()

func (*Tracer) LocalPodsGet

func (t *Tracer) LocalPodsGet(c *gin.Context)

get all pods, running on the local node

func (*Tracer) TraceHooksGet

func (t *Tracer) TraceHooksGet(c *gin.Context)

get all trace hooks

func (*Tracer) TraceSessionDel

func (t *Tracer) TraceSessionDel(c *gin.Context)

delete a trace session if id == "all", all trace sessions are deleted and trace subsystems are reseted

func (*Tracer) TraceSessionGet

func (t *Tracer) TraceSessionGet(c *gin.Context)

get all trace sessions

func (*Tracer) TraceSessionPost

func (t *Tracer) TraceSessionPost(c *gin.Context)

create a trace session

func (*Tracer) TraceSessionPut

func (t *Tracer) TraceSessionPut(c *gin.Context)

modify a trace session

type TracerConfig

type TracerConfig struct {
	NodeName *string              /* Name of the cluster node */
	Verbose  *bool                /* Print informational logs on the standard output. */
	Hook     tracehook.HookConfig /* User configuration, specific to trace-hooks database */
	Pod      pods.PodConfig       /* User configuration, specific to pods database */
	Logger   logger.LoggerConfig  /* User configuration, specific to trace logger */
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL