{"version":3,"file":"otlp-grpc-export-delegate.js","sourceRoot":"","sources":["../../src/otlp-grpc-export-delegate.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,0EAAoF;AAGpF,uEAA4E;AAE5E,SAAgB,4BAA4B,CAC1C,OAA8B,EAC9B,UAA2C,EAC3C,QAAgB,EAChB,QAAgB;IAEhB,OAAO,IAAA,oDAA+B,EACpC,OAAO,EACP,UAAU,EACV,IAAA,yDAA+B,EAAC;QAC9B,OAAO,EAAE,OAAO,CAAC,GAAG;QACpB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,QAAQ;QACR,QAAQ;KACT,CAAC,CACH,CAAC;AACJ,CAAC;AAnBD,oEAmBC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { IOtlpExportDelegate } from '@opentelemetry/otlp-exporter-base';\nimport { createOtlpNetworkExportDelegate } from '@opentelemetry/otlp-exporter-base';\nimport type { ISerializer } from '@opentelemetry/otlp-transformer';\nimport type { OtlpGrpcConfiguration } from './configuration/otlp-grpc-configuration';\nimport { createOtlpGrpcExporterTransport } from './grpc-exporter-transport';\n\nexport function createOtlpGrpcExportDelegate<Internal, Response>(\n  options: OtlpGrpcConfiguration,\n  serializer: ISerializer<Internal, Response>,\n  grpcName: string,\n  grpcPath: string\n): IOtlpExportDelegate<Internal> {\n  return createOtlpNetworkExportDelegate(\n    options,\n    serializer,\n    createOtlpGrpcExporterTransport({\n      address: options.url,\n      compression: options.compression,\n      credentials: options.credentials,\n      metadata: options.metadata,\n      userAgent: options.userAgent,\n      grpcName,\n      grpcPath,\n    })\n  );\n}\n"]}