Updated ElasticsearchInstrumentor instructions
@@ -22,14 +22,14 @@ Usage
.. code-block:: python
from opentelemetry import trace
- from opentelemetry.instrumentation.elasticsearch import ElasticSearchInstrumentor
+ from opentelemetry.instrumentation.elasticsearch import ElasticsearchInstrumentor
from opentelemetry.sdk.trace import TracerProvider
import elasticsearch
trace.set_tracer_provider(TracerProvider())
# instrument elasticsearch
- ElasticSearchInstrumentor().instrument(tracer_provider=trace.get_tracer_provider())
+ ElasticsearchInstrumentor().instrument(tracer_provider=trace.get_tracer_provider())
# Using elasticsearch as normal now will automatically generate spans
es = elasticsearch.Elasticsearch()
