intrinsicFromString returns the matching intrinsic for the given string or -1 if there is none
(s string)
| 223 | |
| 224 | // intrinsicFromString returns the matching intrinsic for the given string or -1 if there is none |
| 225 | func intrinsicFromString(s string) Intrinsic { |
| 226 | switch s { |
| 227 | case duration: |
| 228 | return IntrinsicDuration |
| 229 | case "name": |
| 230 | return IntrinsicName |
| 231 | case "status": |
| 232 | return IntrinsicStatus |
| 233 | case "statusMessage": |
| 234 | return IntrinsicStatusMessage |
| 235 | case "kind": |
| 236 | return IntrinsicKind |
| 237 | case "event:name": |
| 238 | return IntrinsicEventName |
| 239 | case "event:timeSinceStart": |
| 240 | return IntrinsicEventTimeSinceStart |
| 241 | case "link:spanID": |
| 242 | return IntrinsicLinkSpanID |
| 243 | case "link:traceID": |
| 244 | return IntrinsicLinkTraceID |
| 245 | case "parent": |
| 246 | return IntrinsicParent |
| 247 | case "rootServiceName": |
| 248 | return IntrinsicTraceRootService |
| 249 | case "rootName": |
| 250 | return IntrinsicTraceRootSpan |
| 251 | case "traceDuration": |
| 252 | return IntrinsicTraceDuration |
| 253 | case "trace:id": |
| 254 | return IntrinsicTraceID |
| 255 | case "traceStartTime": |
| 256 | return IntrinsicTraceStartTime |
| 257 | case "span:id": |
| 258 | return IntrinsicSpanID |
| 259 | case "span:parentID": |
| 260 | return IntrinsicParentID |
| 261 | case "span:status": |
| 262 | return IntrinsicStatus |
| 263 | case "span:statusMessage": |
| 264 | return IntrinsicStatusMessage |
| 265 | case "span:duration": |
| 266 | return IntrinsicDuration |
| 267 | case "span:name": |
| 268 | return IntrinsicName |
| 269 | case "span:kind": |
| 270 | return IntrinsicKind |
| 271 | case "span:childCount": |
| 272 | return IntrinsicChildCount |
| 273 | case "trace:rootName": |
| 274 | return IntrinsicTraceRootSpan |
| 275 | case "trace:rootService": |
| 276 | return IntrinsicTraceRootService |
| 277 | case "trace:duration": |
| 278 | return IntrinsicTraceDuration |
| 279 | case "instrumentation:name": |
| 280 | return IntrinsicInstrumentationName |
| 281 | case "instrumentation:version": |
| 282 | return IntrinsicInstrumentationVersion |
no outgoing calls
no test coverage detected