@embrace-io/web-sdk
Version:
1 lines • 1.09 kB
Source Map (JSON)
{"version":3,"file":"EmbraceLogExporter.cjs","names":["OTLPFetchLogExporter","DEFAULT_EMBRACE_EXPORTER_CONFIG","getEmbraceHeaders","getLogEndpoint"],"sources":["../../../src/exporters/EmbraceLogExporter/EmbraceLogExporter.ts"],"sourcesContent":["import { DEFAULT_EMBRACE_EXPORTER_CONFIG } from '../constants.ts';\nimport { getEmbraceHeaders } from '../utils.ts';\nimport { OTLPFetchLogExporter } from './OTLPFetchLogExporter.ts';\nimport type { EmbraceLogExporterArgs } from './types.ts';\nimport { getLogEndpoint } from './utils.ts';\n\nexport class EmbraceLogExporter extends OTLPFetchLogExporter {\n public constructor({\n appID,\n userID,\n embraceDataURL,\n }: EmbraceLogExporterArgs) {\n super({\n ...DEFAULT_EMBRACE_EXPORTER_CONFIG,\n headers: getEmbraceHeaders(appID, userID),\n url: getLogEndpoint(appID, embraceDataURL),\n });\n }\n}\n"],"mappings":";;;;;;AAMA,IAAa,qBAAb,cAAwCA,0DAAAA,qBAAqB;CAC3D,YAAmB,EACjB,OACA,QACA,kBACyB;EACzB,MAAM;GACJ,GAAGC,4BAAAA;GACH,SAASC,wBAAAA,kBAAkB,OAAO,MAAM;GACxC,KAAKC,2CAAAA,eAAe,OAAO,cAAc;EAC3C,CAAC;CACH;AACF"}