Add required $contentType arguments (#1225)
This commit is contained in:
		
							parent
							
								
									f2ab3c5e1d
								
							
						
					
					
						commit
						84cf0a5635
					
				| 
						 | 
				
			
			@ -17,7 +17,7 @@ See https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/trace
 | 
			
		|||
## Http transport
 | 
			
		||||
 | 
			
		||||
```php
 | 
			
		||||
$transport = (new \OpenTelemetry\Contrib\Otlp\OtlpHttpTransportFactory())->create('http://collector:4318');
 | 
			
		||||
$transport = (new \OpenTelemetry\Contrib\Otlp\OtlpHttpTransportFactory())->create('http://collector:4318', 'application/json');
 | 
			
		||||
$exporter = new \OpenTelemetry\Contrib\Otlp\SpanExporter($transport);
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue