Skip to content

Support for custom createRequest function #585

@Yogu

Description

@Yogu

I'd like to instrument createRequest for profiling to find out how long a request has been queued and how long it took to send, wait, receive etc.

Currently, this is very brittle and cumbersome as it's buried in the Connection class which can not easily be extended or changed.

This would also enable more use cases like custom proxies etc, logging, etc. In general, it would be nice to be able to supply some parts of arangojs in some kind of dependency injection (e.g. by passing constructors or functions to the config object), but I think createRequest is the most important one.

To fully support logging and tracing, it would also be good to have some kind of context variable that can be passed to Connection.request and to the wrapper functions like Database.transaction that would be passed to the request function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestRequest for new functionality to be added to the driver.fixedIssue has been resolved but remains open due to a pending release.semver-minorThis issue does not require any backwards-incompatible changes to address.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions