Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Support filtering by elasticsearch spans #24

Description

@aspectom

Currently, we allow to filter by specific databases/orm like mongo/sequelize.

We want to enable this same behavior on elasticsearch, so users could filter by elasticsearch spans easily.

This is an example of usage in sequelize

const sequelizeActivities = spans.sequelize();
expect(sequelizeActivities.length).toBe(1);
expect(sequelizeActivities.first.dbOperation).toBe("SELECT");
expect(Array.isArray(JSON.parse(sequelizeActivities.first.dbResponse))).toBe(true);

We would want to enable something like this:

const esSpans = spans.elasticsearch();
expect(esSpans.length).toBe(1);

It means to implement this filter in SpansRepository class. See how it's implemented for mongo/sequelize etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions