(spanAttributes: ReadonlyArray<readonly [string, unknown]>)
| 1402 | * @since 4.0.1 |
| 1403 | */ |
| 1404 | export const spanName = (spanAttributes: ReadonlyArray<readonly [string, unknown]>): string => { |
| 1405 | const target = spanTarget(spanAttributes) |
| 1406 | if (target !== undefined) { |
| 1407 | return target |
| 1408 | } |
| 1409 | const system = spanAttribute(spanAttributes, "db.system.name") |
| 1410 | return isNonEmptyString(system) ? system : "sql.execute" |
| 1411 | } |
| 1412 | |
| 1413 | // internal |
| 1414 |
no test coverage detected