@@ -3066,15 +3066,30 @@ def _process_module_builtin_defaults():
3066
3066
_process_module_definition (
3067
3067
"elasticsearch.client" , "newrelic.hooks.datastore_elasticsearch" , "instrument_elasticsearch_client"
3068
3068
)
3069
+ _process_module_definition (
3070
+ "elasticsearch._async.client" ,
3071
+ "newrelic.hooks.datastore_elasticsearch" ,
3072
+ "instrument_elasticsearch__async_client" ,
3073
+ )
3069
3074
# v8 and above
3070
3075
_process_module_definition (
3071
3076
"elasticsearch._sync.client" , "newrelic.hooks.datastore_elasticsearch" , "instrument_elasticsearch_client_v8"
3072
3077
)
3078
+ _process_module_definition (
3079
+ "elasticsearch._async.client" ,
3080
+ "newrelic.hooks.datastore_elasticsearch" ,
3081
+ "instrument_elasticsearch__async_client_v8" ,
3082
+ )
3073
3083
3074
3084
# v7 and below
3075
3085
_process_module_definition (
3076
3086
"elasticsearch.client.cat" , "newrelic.hooks.datastore_elasticsearch" , "instrument_elasticsearch_client_cat"
3077
3087
)
3088
+ _process_module_definition (
3089
+ "elasticsearch._async.client.cat" ,
3090
+ "newrelic.hooks.datastore_elasticsearch" ,
3091
+ "instrument_elasticsearch__async_client_cat" ,
3092
+ )
3078
3093
# v8 and above
3079
3094
_process_module_definition (
3080
3095
"elasticsearch._sync.client.cat" ,
@@ -3088,30 +3103,43 @@ def _process_module_builtin_defaults():
3088
3103
"newrelic.hooks.datastore_elasticsearch" ,
3089
3104
"instrument_elasticsearch_client_cluster" ,
3090
3105
)
3106
+ _process_module_definition (
3107
+ "elasticsearch._async.client.cluster" ,
3108
+ "newrelic.hooks.datastore_elasticsearch" ,
3109
+ "instrument_elasticsearch__async_client_cluster" ,
3110
+ )
3091
3111
# v8 and above
3092
3112
_process_module_definition (
3093
3113
"elasticsearch._sync.client.cluster" ,
3094
3114
"newrelic.hooks.datastore_elasticsearch" ,
3095
3115
"instrument_elasticsearch_client_cluster_v8" ,
3096
3116
)
3097
-
3098
3117
# v7 and below
3099
3118
_process_module_definition (
3100
3119
"elasticsearch.client.indices" ,
3101
3120
"newrelic.hooks.datastore_elasticsearch" ,
3102
3121
"instrument_elasticsearch_client_indices" ,
3103
3122
)
3123
+ _process_module_definition (
3124
+ "elasticsearch._async.client.indices" ,
3125
+ "newrelic.hooks.datastore_elasticsearch" ,
3126
+ "instrument_elasticsearch__async_client_indices" ,
3127
+ )
3104
3128
# v8 and above
3105
3129
_process_module_definition (
3106
3130
"elasticsearch._sync.client.indices" ,
3107
3131
"newrelic.hooks.datastore_elasticsearch" ,
3108
3132
"instrument_elasticsearch_client_indices_v8" ,
3109
3133
)
3110
-
3111
3134
# v7 and below
3112
3135
_process_module_definition (
3113
3136
"elasticsearch.client.nodes" , "newrelic.hooks.datastore_elasticsearch" , "instrument_elasticsearch_client_nodes"
3114
3137
)
3138
+ _process_module_definition (
3139
+ "elasticsearch._async.client.nodes" ,
3140
+ "newrelic.hooks.datastore_elasticsearch" ,
3141
+ "instrument_elasticsearch__async_client_nodes" ,
3142
+ )
3115
3143
# v8 and above
3116
3144
_process_module_definition (
3117
3145
"elasticsearch._sync.client.nodes" ,
@@ -3125,6 +3153,11 @@ def _process_module_builtin_defaults():
3125
3153
"newrelic.hooks.datastore_elasticsearch" ,
3126
3154
"instrument_elasticsearch_client_snapshot" ,
3127
3155
)
3156
+ _process_module_definition (
3157
+ "elasticsearch._async.client.snapshot" ,
3158
+ "newrelic.hooks.datastore_elasticsearch" ,
3159
+ "instrument_elasticsearch__async_client_snapshot" ,
3160
+ )
3128
3161
# v8 and above
3129
3162
_process_module_definition (
3130
3163
"elasticsearch._sync.client.snapshot" ,
@@ -3136,6 +3169,11 @@ def _process_module_builtin_defaults():
3136
3169
_process_module_definition (
3137
3170
"elasticsearch.client.tasks" , "newrelic.hooks.datastore_elasticsearch" , "instrument_elasticsearch_client_tasks"
3138
3171
)
3172
+ _process_module_definition (
3173
+ "elasticsearch._async.client.tasks" ,
3174
+ "newrelic.hooks.datastore_elasticsearch" ,
3175
+ "instrument_elasticsearch__async_client_tasks" ,
3176
+ )
3139
3177
# v8 and above
3140
3178
_process_module_definition (
3141
3179
"elasticsearch._sync.client.tasks" ,
@@ -3149,6 +3187,11 @@ def _process_module_builtin_defaults():
3149
3187
"newrelic.hooks.datastore_elasticsearch" ,
3150
3188
"instrument_elasticsearch_client_ingest" ,
3151
3189
)
3190
+ _process_module_definition (
3191
+ "elasticsearch._async.client.ingest" ,
3192
+ "newrelic.hooks.datastore_elasticsearch" ,
3193
+ "instrument_elasticsearch__async_client_ingest" ,
3194
+ )
3152
3195
# v8 and above
3153
3196
_process_module_definition (
3154
3197
"elasticsearch._sync.client.ingest" ,
@@ -3162,23 +3205,43 @@ def _process_module_builtin_defaults():
3162
3205
"newrelic.hooks.datastore_elasticsearch" ,
3163
3206
"instrument_elasticsearch_connection_base" ,
3164
3207
)
3208
+ _process_module_definition (
3209
+ "elasticsearch._async.http_aiohttp" ,
3210
+ "newrelic.hooks.datastore_elasticsearch" ,
3211
+ "instrument_async_elasticsearch_connection_base" ,
3212
+ )
3165
3213
# v8 and above
3166
3214
_process_module_definition (
3167
3215
"elastic_transport._node._base" ,
3168
3216
"newrelic.hooks.datastore_elasticsearch" ,
3169
3217
"instrument_elastic_transport__node__base" ,
3170
3218
)
3219
+ _process_module_definition (
3220
+ "elastic_transport._node._base_async" ,
3221
+ "newrelic.hooks.datastore_elasticsearch" ,
3222
+ "instrument_async_elastic_transport__node__base" ,
3223
+ )
3171
3224
3172
3225
# v7 and below
3173
3226
_process_module_definition (
3174
3227
"elasticsearch.transport" , "newrelic.hooks.datastore_elasticsearch" , "instrument_elasticsearch_transport"
3175
3228
)
3229
+ _process_module_definition (
3230
+ "elasticsearch._async.transport" ,
3231
+ "newrelic.hooks.datastore_elasticsearch" ,
3232
+ "instrument_async_elasticsearch_transport" ,
3233
+ )
3176
3234
# v8 and above
3177
3235
_process_module_definition (
3178
3236
"elastic_transport._transport" ,
3179
3237
"newrelic.hooks.datastore_elasticsearch" ,
3180
3238
"instrument_elastic_transport__transport" ,
3181
3239
)
3240
+ _process_module_definition (
3241
+ "elastic_transport._async_transport" ,
3242
+ "newrelic.hooks.datastore_elasticsearch" ,
3243
+ "instrument_async_elastic_transport__transport" ,
3244
+ )
3182
3245
3183
3246
_process_module_definition ("pika.adapters" , "newrelic.hooks.messagebroker_pika" , "instrument_pika_adapters" )
3184
3247
_process_module_definition ("pika.channel" , "newrelic.hooks.messagebroker_pika" , "instrument_pika_channel" )
0 commit comments