Skip to main content

ignored.go

ignored.go - Overview

This file defines functions to determine whether certain telemetry events should be ignored based on the event name and its attributes.

Detailed Documentation

EnabledPaths

  • Purpose: Returns a map of API paths that are explicitly enabled for telemetry.
  • Returns: map[string]struct{}: A map where the keys are the enabled API paths. The value is an empty struct.

ignoreEvents

  • Purpose: Determines whether a telemetry event should be ignored based on its name and attributes.
  • Parameters:
    • event (string): The name of the telemetry event.
    • attributes (map[string]interface{}): A map of attributes associated with the event.
  • Returns: bool: True if the event should be ignored, false otherwise.

Code Examples

None

Include in Getting Started: NO