Span name updated to follow semantic conventions to reduce cardinality (#972)
This commit is contained in:
		
							parent
							
								
									a43d088c3f
								
							
						
					
					
						commit
						c9a0fe761b
					
				|  | @ -2,6 +2,9 @@ | |||
| 
 | ||||
| ## Unreleased | ||||
| 
 | ||||
| - Updating span name to match semantic conventions | ||||
|   ([#972](https://github.com/open-telemetry/opentelemetry-python/pull/972)) | ||||
| 
 | ||||
| ## Version 0.12b0 | ||||
| 
 | ||||
| Released 2020-08-14 | ||||
|  |  | |||
|  | @ -126,7 +126,7 @@ def create_trace_config( | |||
|     ): | ||||
|         http_method = params.method.upper() | ||||
|         if trace_config_ctx.span_name is None: | ||||
|             request_span_name = http_method | ||||
|             request_span_name = "HTTP {}".format(http_method) | ||||
|         elif callable(trace_config_ctx.span_name): | ||||
|             request_span_name = str(trace_config_ctx.span_name(params)) | ||||
|         else: | ||||
|  |  | |||
|  | @ -118,7 +118,7 @@ class TestAioHttpIntegration(TestBase): | |||
|                 self.assert_spans( | ||||
|                     [ | ||||
|                         ( | ||||
|                             "GET", | ||||
|                             "HTTP GET", | ||||
|                             (span_status, None), | ||||
|                             { | ||||
|                                 "component": "http", | ||||
|  | @ -192,7 +192,7 @@ class TestAioHttpIntegration(TestBase): | |||
|         self.assert_spans( | ||||
|             [ | ||||
|                 ( | ||||
|                     "GET", | ||||
|                     "HTTP GET", | ||||
|                     (StatusCanonicalCode.OK, None), | ||||
|                     { | ||||
|                         "component": "http", | ||||
|  | @ -232,7 +232,7 @@ class TestAioHttpIntegration(TestBase): | |||
|             self.assert_spans( | ||||
|                 [ | ||||
|                     ( | ||||
|                         "GET", | ||||
|                         "HTTP GET", | ||||
|                         (expected_status, None), | ||||
|                         { | ||||
|                             "component": "http", | ||||
|  | @ -260,7 +260,7 @@ class TestAioHttpIntegration(TestBase): | |||
|         self.assert_spans( | ||||
|             [ | ||||
|                 ( | ||||
|                     "GET", | ||||
|                     "HTTP GET", | ||||
|                     (StatusCanonicalCode.DEADLINE_EXCEEDED, None), | ||||
|                     { | ||||
|                         "component": "http", | ||||
|  | @ -290,7 +290,7 @@ class TestAioHttpIntegration(TestBase): | |||
|         self.assert_spans( | ||||
|             [ | ||||
|                 ( | ||||
|                     "GET", | ||||
|                     "HTTP GET", | ||||
|                     (StatusCanonicalCode.DEADLINE_EXCEEDED, None), | ||||
|                     { | ||||
|                         "component": "http", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue