{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { InstrumentationConfig } from '@opentelemetry/instrumentation';\n\nexport type IgnoreMatcher = string | RegExp | ((str: string) => boolean);\n\nexport interface GrpcInstrumentationConfig extends InstrumentationConfig {\n  /* Omits tracing on any gRPC methods that match any of\n   * the IgnoreMatchers in the ignoreGrpcMethods list\n   */\n  ignoreGrpcMethods?: IgnoreMatcher[];\n  /** Map the following gRPC metadata to span attributes. */\n  metadataToSpanAttributes?: {\n    client?: {\n      responseMetadata?: string[];\n      requestMetadata?: string[];\n    };\n    server?: {\n      responseMetadata?: string[];\n      requestMetadata?: string[];\n    };\n  };\n}\n"]}