mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 19:47:17 +08:00
Sync with auto generated semantic convention constants (#428)
This commit is contained in:
@ -27,6 +27,7 @@ from opentelemetry.exporter import datadog
|
||||
from opentelemetry.sdk import trace
|
||||
from opentelemetry.sdk.trace import Resource, sampling
|
||||
from opentelemetry.sdk.util.instrumentation import InstrumentationInfo
|
||||
from opentelemetry.semconv.trace import SpanAttributes
|
||||
|
||||
|
||||
class MockDatadogSpanExporter(datadog.DatadogSpanExporter):
|
||||
@ -302,8 +303,14 @@ class TestDatadogSpanExporter(unittest.TestCase):
|
||||
def test_resources(self):
|
||||
test_attributes = [
|
||||
{},
|
||||
{"http.method": "GET", "http.route": "/foo/<int:id>"},
|
||||
{"http.method": "GET", "http.target": "/foo/200"},
|
||||
{
|
||||
SpanAttributes.HTTP_METHOD: "GET",
|
||||
SpanAttributes.HTTP_ROUTE: "/foo/<int:id>",
|
||||
},
|
||||
{
|
||||
SpanAttributes.HTTP_METHOD: "GET",
|
||||
SpanAttributes.HTTP_TARGET: "/foo/200",
|
||||
},
|
||||
]
|
||||
|
||||
for index, test in enumerate(test_attributes):
|
||||
|
Reference in New Issue
Block a user