{"version":3,"file":"ExemplarFilter.js","sourceRoot":"","sources":["../../../src/exemplar/ExemplarFilter.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context, HrTime, Attributes } from '@opentelemetry/api';\n\n/**\n * This interface represents a ExemplarFilter. Exemplar filters are\n * used to filter measurements before attempting to store them in a\n * reservoir.\n */\nexport interface ExemplarFilter {\n  /**\n   * Returns whether or not a reservoir should attempt to filter a measurement.\n   *\n   * @param value The value of the measurement\n   * @param timestamp A timestamp that best represents when the measurement was taken\n   * @param attributes The complete set of Attributes of the measurement\n   * @param ctx The Context of the measurement\n   */\n  shouldSample(\n    value: number,\n    timestamp: HrTime,\n    attributes: Attributes,\n    ctx: Context\n  ): boolean;\n}\n"]}