Interface AddRequestDataToEventOptions

Options deciding what parts of the request to use when enhancing an event

Hierarchy

  • AddRequestDataToEventOptions

Properties

Properties

deps?: {
    cookie: {
        parse: ((cookieStr) => Record<string, string>);
    };
    url: {
        parse: ((urlStr) => {
            query: null | string;
        });
    };
}

Injected platform-specific dependencies

Type declaration

  • cookie: {
        parse: ((cookieStr) => Record<string, string>);
    }
    • parse: ((cookieStr) => Record<string, string>)
        • (cookieStr): Record<string, string>
        • Parameters

          • cookieStr: string

          Returns Record<string, string>

  • url: {
        parse: ((urlStr) => {
            query: null | string;
        });
    }
    • parse: ((urlStr) => {
          query: null | string;
      })
        • (urlStr): {
              query: null | string;
          }
        • Parameters

          • urlStr: string

          Returns {
              query: null | string;
          }

          • query: null | string
include?: {
    ip?: boolean;
    request?: boolean | string[];
    transaction?: boolean | TransactionNamingScheme;
    user?: boolean | string[];
}

Flags controlling whether each type of data should be added to the event

Type declaration

  • Optional ip?: boolean
  • Optional request?: boolean | string[]
  • Optional transaction?: boolean | TransactionNamingScheme
  • Optional user?: boolean | string[]

Generated using TypeDoc