Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
3e1e1d2
Fix function_wrapper calls to module
lrafeei Oct 13, 2022
f30dc0b
Fix wrapper in pika hook
lrafeei Oct 13, 2022
6ae10a6
Merge branch 'main' into module-classmethod-fix
lrafeei Nov 1, 2022
654f6f0
Merge branch 'main' into module-classmethod-fix
lrafeei Nov 10, 2022
be171eb
Merge branch 'main' into module-classmethod-fix
TimPansino Nov 10, 2022
1cc03bc
Revert elasticsearch instrumentation
lrafeei Nov 2, 2022
9149bf3
Revert some wrap_function_wrappers to orig
lrafeei Nov 10, 2022
b736fc5
Merge branch 'main' into module-classmethod-fix
lrafeei Nov 11, 2022
83e5fcb
Merge branch 'main' into module-classmethod-fix
lrafeei Nov 15, 2022
ab2596c
Merge branch 'main' into module-classmethod-fix
lrafeei Nov 23, 2022
17d0bc1
Merge branch 'main' into module-classmethod-fix
lrafeei Nov 28, 2022
095385f
Merge branch 'main' into module-classmethod-fix
lrafeei Jan 5, 2023
816c693
Merge branch 'main' into module-classmethod-fix
TimPansino Jan 9, 2023
f7d0dd2
Merge branch 'main' into module-classmethod-fix
lrafeei Jan 11, 2023
a37ca57
Remove comments/breakpoints
lrafeei Jan 12, 2023
39ed79c
Fix hooks in elasticsearch
lrafeei Jan 13, 2023
41aeb8f
Add new client methods from v8 and their hooks
lrafeei Jan 14, 2023
6b84106
Add elasticsearch v8 to workflow and tox
lrafeei Jan 14, 2023
40aca6c
Fix indices for elasticsearch01
lrafeei Jan 15, 2023
abc553d
Disable xpack security in elasticsearch v8.0
lrafeei Jan 18, 2023
111e3d6
Start to add try/except blocks in tests
lrafeei Jan 18, 2023
9346cd0
Merge branch 'main' into elasticsearch-v8-support
lrafeei Jan 18, 2023
10cb4f2
Add support for v8 transport
mary-martinez Jan 19, 2023
84fcf6c
add support for v8 connection
deleonenriqueta Jan 19, 2023
bf1e685
Add tests-WIP
deleonenriqueta Jan 19, 2023
542f3a2
Clean up most tests
lrafeei Jan 24, 2023
294a840
Clean up unused instrumentation
TimPansino Jan 25, 2023
21c0bfe
Remove elastic search source code
TimPansino Jan 25, 2023
08dc8e1
Elasticsearch v8 testing
TimPansino Jan 25, 2023
67f5890
Scope ES fixture
TimPansino Jan 25, 2023
bdb6322
Merge branch 'main' into elasticsearch-v8-support
lrafeei Jan 25, 2023
2565ade
ES v8 only supports Python3.6+
lrafeei Jan 25, 2023
c105b87
Refactor transport tests for v8
TimPansino Jan 25, 2023
1c075bd
Remove extra comments
lrafeei Jan 25, 2023
a7c3a47
Added perform_request_kwargs to test_transport
lrafeei Jan 26, 2023
4768502
Fix some linter issues
lrafeei Jan 26, 2023
313ca9f
Merge branch 'main' into elasticsearch-v8-support
lrafeei Jan 26, 2023
88ff7f4
Merge branch 'main' into elasticsearch-v8-support
lrafeei Jan 30, 2023
313f73a
Remove extra newline
hmstepanek Jan 31, 2023
b0b95f5
Group es v7 v8 process modules together
hmstepanek Jan 31, 2023
a33b7a2
Add auto signature detection & binding
hmstepanek Feb 1, 2023
fc74251
Use bind_arguments in ES
hmstepanek Feb 1, 2023
ab2ca2a
Add test for wrapped function
hmstepanek Feb 2, 2023
aad346a
Add validator for datastore trace inputs
hmstepanek Feb 2, 2023
924dd53
Use common bind_arguments for PY3
hmstepanek Feb 2, 2023
3421b65
Fix tests in starlette v0.23.1 (#752)
lrafeei Jan 31, 2023
a877f06
Split below es 8 methods from es 8 methods
hmstepanek Feb 2, 2023
9f37ea4
Remove signature auto detection implementation
hmstepanek Feb 9, 2023
7d7d71d
Merge branch 'main' into elasticsearch-v8-support
hmstepanek Feb 9, 2023
e03c627
Fixup: remove signature autodetection
hmstepanek Feb 9, 2023
daa909d
Fixup: cleanup
hmstepanek Feb 9, 2023
3862639
Test method calls on all es versions
hmstepanek Feb 9, 2023
270cc03
Fixup: don't run some methods on es7
hmstepanek Feb 9, 2023
8d62589
Merge branch 'main' into elasticsearch-v8-support
hmstepanek Feb 9, 2023
e1f144f
Merge branch 'main' into elasticsearch-v8-support
mergify[bot] Feb 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
runs-on: ubuntu-20.04
needs:
- python
- elasticsearchserver01
- elasticsearchserver07
- elasticsearchserver08
- gearman
- grpc
- kafka
Expand Down Expand Up @@ -656,7 +656,7 @@ jobs:
path: ./**/.coverage.*
retention-days: 1

elasticsearchserver01:
elasticsearchserver07:
env:
TOTAL_GROUPS: 1

Expand All @@ -669,8 +669,8 @@ jobs:
timeout-minutes: 30

services:
es01:
image: elasticsearch:1.4.4
es07:
image: elasticsearch:7.17.8
env:
"discovery.type": "single-node"
ports:
Expand Down Expand Up @@ -708,7 +708,7 @@ jobs:
path: ./**/.coverage.*
retention-days: 1

elasticsearchserver07:
elasticsearchserver08:
env:
TOTAL_GROUPS: 1

Expand All @@ -721,9 +721,10 @@ jobs:
timeout-minutes: 30

services:
es01:
image: elasticsearch:7.13.2
es08:
image: elasticsearch:8.6.0
env:
"xpack.security.enabled": "false"
"discovery.type": "single-node"
ports:
- 8080:9200
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.DS_Store
.DS_Store/

# Linter
megalinter-reports/

Expand Down
87 changes: 85 additions & 2 deletions newrelic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2665,64 +2665,147 @@ def _process_module_builtin_defaults():
"aioredis.connection", "newrelic.hooks.datastore_aioredis", "instrument_aioredis_connection"
)

_process_module_definition("redis.asyncio.client", "newrelic.hooks.datastore_aioredis", "instrument_aioredis_client")
_process_module_definition(
"redis.asyncio.client", "newrelic.hooks.datastore_aioredis", "instrument_aioredis_client"
)

_process_module_definition("redis.asyncio.commands", "newrelic.hooks.datastore_aioredis", "instrument_aioredis_client")
_process_module_definition(
"redis.asyncio.commands", "newrelic.hooks.datastore_aioredis", "instrument_aioredis_client"
)

_process_module_definition(
"redis.asyncio.connection", "newrelic.hooks.datastore_aioredis", "instrument_aioredis_connection"
)

# v7 and below
_process_module_definition(
"elasticsearch.client",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.cat",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_cat",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.cat",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_cat_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.cluster",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_cluster",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.cluster",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_cluster_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.indices",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_indices",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.indices",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_indices_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.nodes",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_nodes",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.nodes",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_nodes_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.snapshot",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_snapshot",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.snapshot",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_snapshot_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.tasks",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_tasks",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.tasks",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_tasks_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.client.ingest",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_ingest",
)
# v8 and above
_process_module_definition(
"elasticsearch._sync.client.ingest",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_client_ingest_v8",
)

# v7 and below
_process_module_definition(
"elasticsearch.connection.base",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_connection_base",
)
# v8 and above
_process_module_definition(
"elastic_transport._node._base",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elastic_transport__node__base",
)

# v7 and below
_process_module_definition(
"elasticsearch.transport",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elasticsearch_transport",
)
# v8 and above
_process_module_definition(
"elastic_transport._transport",
"newrelic.hooks.datastore_elasticsearch",
"instrument_elastic_transport__transport",
)

_process_module_definition("pika.adapters", "newrelic.hooks.messagebroker_pika", "instrument_pika_adapters")
_process_module_definition("pika.channel", "newrelic.hooks.messagebroker_pika", "instrument_pika_channel")
Expand Down
Loading