mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 14:11:50 +08:00
Rename remaining framework packages from "ext" to "instrumentation" (#969)
This commit is contained in:
@ -0,0 +1,33 @@
|
||||
from elasticsearch_dsl import ( # pylint: disable=unused-import
|
||||
Document,
|
||||
Keyword,
|
||||
Text,
|
||||
)
|
||||
|
||||
|
||||
class Article(Document):
|
||||
title = Text(analyzer="snowball", fields={"raw": Keyword()})
|
||||
body = Text(analyzer="snowball")
|
||||
|
||||
class Index:
|
||||
name = "test-index"
|
||||
|
||||
|
||||
dsl_create_statement = {
|
||||
"mappings": {
|
||||
"doc": {
|
||||
"properties": {
|
||||
"title": {
|
||||
"analyzer": "snowball",
|
||||
"fields": {"raw": {"type": "keyword"}},
|
||||
"type": "text",
|
||||
},
|
||||
"body": {"analyzer": "snowball", "type": "text"},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
dsl_index_result = (1, {}, '{"result": "created"}')
|
||||
dsl_index_span_name = "Elasticsearch/test-index/doc/2"
|
||||
dsl_index_url = "/test-index/doc/2"
|
||||
dsl_search_method = "GET"
|
Reference in New Issue
Block a user