(url: string)
| 55 | export type OpentracePluginOptions = z.infer<typeof OpentracePluginOptionsSchema> |
| 56 | |
| 57 | function extractHostname(url: string): string | null { |
| 58 | try { |
| 59 | return new URL(url).hostname |
| 60 | } catch { |
| 61 | return null |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Resolve the best git token for *url*. |