File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ddtrace/contrib/elasticsearch Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44::
55
66 from ddtrace import Pin, patch
7- import elasticsearch
7+ from elasticsearch import Elasticsearch
88
99 # If not patched yet, you can patch elasticsearch specifically
1010 patch(elasticsearch=True)
1111
1212 # This will report spans with the default instrumentation
13- es = elasticsearch. Elasticsearch(port=ELASTICSEARCH_CONFIG['port'])
13+ es = Elasticsearch(port=ELASTICSEARCH_CONFIG['port'])
1414 # Example of instrumented query
1515 es.indices.create(index='books', ignore=400)
1616
1717 # Use a pin to specify metadata related to this client
18- es = elasticsearch. Elasticsearch(port=ELASTICSEARCH_CONFIG['port'])
18+ es = Elasticsearch(port=ELASTICSEARCH_CONFIG['port'])
1919 Pin.override(es.transport, service='elasticsearch-videos')
2020 es.indices.create(index='videos', ignore=400)
2121"""
You can’t perform that action at this time.
0 commit comments