{"version":3,"file":"commonModel.js","sourceRoot":"","sources":["../../../src/models/commonModel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,CAAC;;;AA4Eb,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAwGD,IAAY,cAyBX;AAzBD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EAzBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAyBzB","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n'use strict';\n\nexport interface IncludeExclude {\n  /**\n   * Configure list of attribute key patterns to include from resource detectors.\n   * Attribute keys from resource detectors are evaluated to match as follows:\n   *   * If the value of the attribute key exactly matches.\n   *   * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.\n   * If omitted, all attributes are included.\n   */\n  included?: string[];\n\n  /**\n   * Configure list of attribute key patterns to exclude from resource detectors. Applies after .resource.detectors.attributes.included (i.e. excluded has higher priority than included).\n   * Attribute keys from resource detectors are evaluated to match as follows:\n   *   * If the value of the attribute key exactly matches.\n   *   * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.\n   * If omitted, .included attributes are included.\n   */\n  excluded?: string[];\n}\n\nexport interface NameStringValuePair {\n  name: string;\n  value: string;\n}\n\nexport interface OtlpHttpExporter {\n  /**\n   * Configure endpoint, including the trace, metric or log specific path.\n   * If omitted or null, http://localhost:4318/v1/traces is used for trace,\n   * http://localhost:4318/v1/metrics for metrics\n   * and http://localhost:4318/v1/logs is used for logs.\n   */\n  endpoint?: string;\n\n  /**\n   * Configure TLS settings for the exporter.\n   */\n  tls?: HttpTls;\n\n  /**\n   * Configure compression.\n   * Values include: gzip, none. Implementations may support other compression algorithms.\n   * If omitted or null, none is used.\n   */\n  compression?: string;\n\n  /**\n   * Configure max time (in milliseconds) to wait for each export.\n   * Value must be non-negative. A value of 0 indicates no limit (infinity).\n   * If omitted or null, 10000 is used.\n   */\n  timeout?: number;\n\n  /**\n   * Configure headers. Entries have higher priority than entries from .headers_list.\n   * If an entry's .value is null, the entry is ignored.\n   */\n  headers?: NameStringValuePair[];\n\n  /**\n   * Configure headers. Entries have lower priority than entries from .headers.\n   * The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS.\n   * If omitted or null, no headers are added.\n   */\n  headers_list?: string;\n\n  /**\n   * Configure the encoding used for messages.\n   * Values include: protobuf, json. Implementations may not support json.\n   * If omitted or null, protobuf is used.\n   */\n  encoding?: OtlpHttpEncoding;\n}\n\nexport enum OtlpHttpEncoding {\n  JSON = 'json',\n  Protobuf = 'protobuf',\n}\n\nexport interface OtlpGrpcExporter {\n  /**\n   * Configure endpoint.\n   * If omitted or null, http://localhost:4317 is used.\n   */\n  endpoint?: string;\n\n  /**\n   * Configure TLS settings for the exporter.\n   */\n  tls?: GrpcTls;\n\n  /**\n   * Configure headers. Entries have higher priority than entries from .headers_list.\n   * If an entry's .value is null, the entry is ignored.\n   */\n  headers?: NameStringValuePair[];\n\n  /**\n   * Configure headers. Entries have lower priority than entries from .headers.\n   * The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS.\n   * If omitted or null, no headers are added.\n   */\n  headers_list?: string;\n\n  /**\n   * Configure compression.\n   * Values include: gzip, none. Implementations may support other compression algorithms.\n   * If omitted or null, none is used.\n   */\n  compression?: string;\n\n  /**\n   * Configure max time (in milliseconds) to wait for each export.\n   * Value must be non-negative. A value of 0 indicates no limit (infinity).\n   * If omitted or null, 10000 is used.\n   */\n  timeout?: number;\n}\n\nexport interface ExperimentalOtlpFileExporter {\n  /**\n   * Configure output stream.\n   * Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.\n   * If omitted or null, stdout is used.\n   */\n  output_stream?: string;\n}\n\nexport interface HttpTls {\n  /**\n   * Configure certificate used to verify a server's TLS credentials.\n   * Absolute path to certificate file in PEM format.\n   * If omitted or null, system default certificate verification is used for secure connections.\n   */\n  ca_file?: string;\n\n  /**\n   * Configure mTLS private client key.\n   * Absolute path to client key file in PEM format. If set, .client_certificate must also be set.\n   * If omitted or null, mTLS is not used.\n   */\n  key_file?: string;\n\n  /**\n   * Configure mTLS client certificate.\n   * Absolute path to client certificate file in PEM format. If set, .client_key must also be set.\n   * If omitted or null, mTLS is not used.\n   */\n  cert_file?: string;\n}\n\nexport interface GrpcTls {\n  /**\n   * Configure certificate used to verify a server's TLS credentials.\n   * Absolute path to certificate file in PEM format.\n   * If omitted or null, system default certificate verification is used for secure connections.\n   */\n  ca_file?: string;\n\n  /**\n   * Configure mTLS private client key.\n   * Absolute path to client key file in PEM format. If set, .client_certificate must also be set.\n   * If omitted or null, mTLS is not used.\n   */\n  key_file?: string;\n\n  /**\n   * Configure mTLS client certificate.\n   * Absolute path to client certificate file in PEM format. If set, .client_key must also be set.\n   * If omitted or null, mTLS is not used.\n   */\n  cert_file?: string;\n\n  /**\n   * Configure client transport security for the exporter's connection.\n   * Only applicable when .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure.\n   * If omitted or null, false is used.\n   */\n  insecure?: boolean;\n}\n\nexport enum SeverityNumber {\n  DEBUG = 'debug',\n  DEBUG2 = 'debug2',\n  DEBUG3 = 'debug3',\n  DEBUG4 = 'debug4',\n  ERROR = 'error',\n  ERROR2 = 'error2',\n  ERROR3 = 'error3',\n  ERROR4 = 'error4',\n  FATAL = 'fatal',\n  FATAL2 = 'fatal2',\n  FATAL3 = 'fatal3',\n  FATAL4 = 'fatal4',\n  INFO = 'info',\n  INFO2 = 'info2',\n  INFO3 = 'info3',\n  INFO4 = 'info4',\n  TRACE = 'trace',\n  TRACE2 = 'trace2',\n  TRACE3 = 'trace3',\n  TRACE4 = 'trace4',\n  WARN = 'warn',\n  WARN2 = 'warn2',\n  WARN3 = 'warn3',\n  WARN4 = 'warn4',\n}\n"]}