newResource creates a resource that describe current handler instance and merge it with a default attributes value.
( webEngineName, webEngineVersion string, )
| 138 | |
| 139 | // newResource creates a resource that describe current handler instance and merge it with a default attributes value. |
| 140 | func (ot *openTelemetryWrapper) newResource( |
| 141 | webEngineName, |
| 142 | webEngineVersion string, |
| 143 | ) (*resource.Resource, error) { |
| 144 | return resource.Merge(resource.Default(), resource.NewSchemaless( |
| 145 | semconv.WebEngineName(webEngineName), |
| 146 | semconv.WebEngineVersion(webEngineVersion), |
| 147 | )) |
| 148 | } |
| 149 | |
| 150 | // spanNameFormatter performs the replacement of placeholders in the span name |
| 151 | func (ot *openTelemetryWrapper) spanNameFormatter(operation string, r *http.Request) string { |
no test coverage detected