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.

Reason behind instrumentation-neo4j locked behind versions >=4.0.0 <5.0.0 of neo4j-driver #255

@bokjo

Description

@bokjo

Hello,

General question on why the instrumentation-neo4j package is locked behind versions >=4.0.0 <5.0.0 of the neo4j-driver?

In my understanding, the neo4j-driver@v5 is fully backward compatible with the v4 one.

Did a quick test, hardcoding the check in the lib like this

    this.getModuleDefinition('neo4j-driver-core', ['>=4.3.0 <=5']),
    this.getModuleDefinition('neo4j-driver', ['>=4.0.0 <=5']),

in the Instrumentation init() function
https://github.com/aspecto-io/opentelemetry-ext-js/blob/master/packages/instrumentation-neo4j/src/neo4j.ts#L30

and everything seems to be working as expected (the traces are generated successfully and sent to the appropriate exporter's backend)

image

If some additional testing is needed please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions