@@ -44,9 +44,9 @@ def test_otel_end_to_end(sync_client):
4444 assert spans [0 ].name == "search"
4545 expected_attributes = {
4646 "http.request.method" : "POST" ,
47- "db.system" : "elasticsearch" ,
48- "db.operation" : "search" ,
49- "db.elasticsearch.path_parts .index" : "logs-*" ,
47+ "db.system.name " : "elasticsearch" ,
48+ "db.operation.name " : "search" ,
49+ "db.operation.parameter .index" : "logs-*" ,
5050 }
5151 # Assert expected atttributes are here, but allow other attributes too
5252 # to make this test robust to elastic-transport changes
@@ -89,8 +89,8 @@ def test_otel_bulk(sync_client, elasticsearch_url, bulk_helper_name):
8989 parent_span = spans .pop ()
9090 assert parent_span .name == f"helpers.{ bulk_helper_name } "
9191 assert parent_span .attributes == {
92- "db.system" : "elasticsearch" ,
93- "db.operation" : f"helpers.{ bulk_helper_name } " ,
92+ "db.system.name " : "elasticsearch" ,
93+ "db.operation.name " : f"helpers.{ bulk_helper_name } " ,
9494 "http.request.method" : "null" ,
9595 }
9696
@@ -99,9 +99,9 @@ def test_otel_bulk(sync_client, elasticsearch_url, bulk_helper_name):
9999 assert span .name == "bulk"
100100 expected_attributes = {
101101 "http.request.method" : "PUT" ,
102- "db.system" : "elasticsearch" ,
103- "db.operation" : "bulk" ,
104- "db.elasticsearch.path_parts .index" : "test-index" ,
102+ "db.system.name " : "elasticsearch" ,
103+ "db.operation.name " : "bulk" ,
104+ "db.operation.parameter .index" : "test-index" ,
105105 }
106106 # Assert expected atttributes are here, but allow other attributes too
107107 # to make this test robust to elastic-transport changes
0 commit comments