id: 1 unit: func main() file: cmd/apmtool/main.go start line: 28 end line: 98 size: 71 LOC McCabe index: 2 number of parameters: 0 id: 2 unit: func() file: pkg/espoll/client.go start line: 46 end line: 115 size: 62 LOC McCabe index: 16 number of parameters: 1 id: 3 unit: func() file: cmd/apmtool/sourcemap.go start line: 33 end line: 92 size: 58 LOC McCabe index: 12 number of parameters: 1 id: 4 unit: func() file: cmd/apmtool/events.go start line: 31 end line: 88 size: 54 LOC McCabe index: 12 number of parameters: 1 id: 5 unit: func SendIntakeV2Trace() file: pkg/tracegen/intake.go start line: 35 end line: 100 size: 52 LOC McCabe index: 3 number of parameters: 2 id: 6 unit: func SendOTLPTrace() file: pkg/tracegen/otlp.go start line: 50 end line: 104 size: 48 LOC McCabe index: 12 number of parameters: 2 id: 7 unit: func() file: cmd/apmtool/credentials.go start line: 80 end line: 130 size: 45 LOC McCabe index: 9 number of parameters: 1 id: 8 unit: func approval() file: cmd/check-approvals/main.go start line: 38 end line: 83 size: 42 LOC McCabe index: 10 number of parameters: 0 id: 9 unit: func newOTLPGRPCExporters() file: pkg/tracegen/otlp.go start line: 174 end line: 218 size: 39 LOC McCabe index: 5 number of parameters: 3 id: 10 unit: func() file: pkg/apmclient/client.go start line: 129 end line: 169 size: 38 LOC McCabe index: 3 number of parameters: 1 id: 11 unit: func SendOTLP() file: pkg/metricgen/otlp.go start line: 44 end line: 88 size: 38 LOC McCabe index: 8 number of parameters: 2 id: 12 unit: func Main() file: cmd/apmtool/espoll.go start line: 127 end line: 165 size: 36 LOC McCabe index: 6 number of parameters: 2 id: 13 unit: func() file: cmd/apmtool/espoll.go start line: 55 end line: 95 size: 34 LOC McCabe index: 6 number of parameters: 1 id: 14 unit: func() file: pkg/espoll/search.go start line: 34 end line: 72 size: 33 LOC McCabe index: 5 number of parameters: 1 id: 15 unit: func rewriteDynamic() file: pkg/approvaltest/approvals.go start line: 99 end line: 140 size: 33 LOC McCabe index: 7 number of parameters: 4 id: 16 unit: func() file: pkg/apmclient/client.go start line: 63 end line: 93 size: 31 LOC McCabe index: 4 number of parameters: 1 id: 17 unit: func SendIntakeV2() file: pkg/metricgen/intake.go start line: 37 end line: 78 size: 30 LOC McCabe index: 4 number of parameters: 2 id: 18 unit: func updateCache() file: cmd/apmtool/cache.go start line: 64 end line: 97 size: 30 LOC McCabe index: 8 number of parameters: 2 id: 19 unit: func NewUploadSourcemapCmd() file: cmd/apmtool/sourcemap.go start line: 95 end line: 124 size: 30 LOC McCabe index: 1 number of parameters: 1 id: 20 unit: func() file: pkg/apmclient/client.go start line: 99 end line: 126 size: 28 LOC McCabe index: 3 number of parameters: 1 id: 21 unit: func() file: cmd/apmtool/tracegen.go start line: 32 end line: 62 size: 28 LOC McCabe index: 3 number of parameters: 1 id: 22 unit: func NewESPollCmd() file: cmd/apmtool/espoll.go start line: 98 end line: 125 size: 28 LOC McCabe index: 1 number of parameters: 1 id: 23 unit: func() file: pkg/espoll/request.go start line: 35 end line: 67 size: 27 LOC McCabe index: 5 number of parameters: 1 id: 24 unit: func newOTLPMetricGRPCExporter() file: pkg/metricgen/otlp.go start line: 141 end line: 172 size: 27 LOC McCabe index: 5 number of parameters: 2 id: 25 unit: func() file: pkg/espoll/search.go start line: 164 end line: 189 size: 26 LOC McCabe index: 4 number of parameters: 1 id: 26 unit: func transform() file: cmd/flatten-approvals/main.go start line: 57 end line: 83 size: 26 LOC McCabe index: 5 number of parameters: 1 id: 27 unit: func() file: pkg/apmclient/config.go start line: 113 end line: 141 size: 25 LOC McCabe index: 10 number of parameters: 1 id: 28 unit: func() file: pkg/apmclient/config.go start line: 84 end line: 107 size: 24 LOC McCabe index: 9 number of parameters: 1 id: 29 unit: func newTracer() file: pkg/tracegen/intake.go start line: 102 end line: 127 size: 24 LOC McCabe index: 4 number of parameters: 1 id: 30 unit: func newOTLPHTTPExporters() file: pkg/tracegen/otlp.go start line: 220 end line: 247 size: 24 LOC McCabe index: 3 number of parameters: 3 id: 31 unit: func generateSpans() file: pkg/tracegen/otlp.go start line: 106 end line: 131 size: 23 LOC McCabe index: 1 number of parameters: 3 id: 32 unit: func generateLogs() file: pkg/tracegen/otlp.go start line: 133 end line: 155 size: 22 LOC McCabe index: 3 number of parameters: 4 id: 33 unit: func getEventType() file: pkg/approvaltest/sort.go start line: 40 end line: 60 size: 21 LOC McCabe index: 7 number of parameters: 1 id: 34 unit: func compareDocumentFields() file: pkg/approvaltest/sort.go start line: 78 end line: 107 size: 21 LOC McCabe index: 7 number of parameters: 2 id: 35 unit: func() file: pkg/metricgen/config.go start line: 49 end line: 73 size: 21 LOC McCabe index: 7 number of parameters: 1 id: 36 unit: func updateCachedCredentials() file: cmd/apmtool/credentials.go start line: 58 end line: 78 size: 21 LOC McCabe index: 7 number of parameters: 2 id: 37 unit: func otlpEndpoint() file: pkg/metricgen/otlp.go start line: 119 end line: 139 size: 19 LOC McCabe index: 6 number of parameters: 1 id: 38 unit: func NewSendEventCmd() file: cmd/apmtool/events.go start line: 91 end line: 109 size: 19 LOC McCabe index: 1 number of parameters: 1 id: 39 unit: func() file: cmd/apmtool/env.go start line: 27 end line: 47 size: 19 LOC McCabe index: 6 number of parameters: 1 id: 40 unit: func NewTraceGenCmd() file: cmd/apmtool/tracegen.go start line: 86 end line: 104 size: 19 LOC McCabe index: 1 number of parameters: 1 id: 41 unit: func New() file: pkg/apmclient/client.go start line: 42 end line: 59 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 42 unit: func approve() file: pkg/approvaltest/approvals.go start line: 187 end line: 205 size: 17 LOC McCabe index: 4 number of parameters: 3 id: 43 unit: func writeReceived() file: pkg/approvaltest/approvals.go start line: 227 end line: 243 size: 17 LOC McCabe index: 4 number of parameters: 2 id: 44 unit: func newOTLPMetricHTTPExporter() file: pkg/metricgen/otlp.go start line: 98 end line: 117 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 45 unit: func SendDistributedTrace() file: pkg/tracegen/distributed.go start line: 29 end line: 48 size: 17 LOC McCabe index: 4 number of parameters: 2 id: 46 unit: func flattenFields() file: cmd/flatten-approvals/main.go start line: 85 end line: 101 size: 17 LOC McCabe index: 6 number of parameters: 3 id: 47 unit: func() file: pkg/tracegen/config.go start line: 141 end line: 158 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 48 unit: func flatten() file: cmd/flatten-approvals/main.go start line: 39 end line: 54 size: 16 LOC McCabe index: 5 number of parameters: 1 id: 49 unit: func readCache() file: cmd/apmtool/cache.go start line: 39 end line: 56 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 50 unit: func readApproved() file: pkg/approvaltest/approvals.go start line: 207 end line: 221 size: 15 LOC McCabe index: 5 number of parameters: 2 id: 51 unit: func() file: pkg/tracegen/config.go start line: 123 end line: 138 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 52 unit: func() file: cmd/apmtool/services.go start line: 27 end line: 40 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 53 unit: func readCachedCredentials() file: cmd/apmtool/credentials.go start line: 40 end line: 53 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 54 unit: func approveEventDocs() file: pkg/approvaltest/approvals.go start line: 149 end line: 164 size: 13 LOC McCabe index: 3 number of parameters: 3 id: 55 unit: func NewConfig() file: pkg/tracegen/config.go start line: 42 end line: 56 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 56 unit: func NewPrintEnvCmd() file: cmd/apmtool/env.go start line: 50 end line: 62 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 57 unit: func ApproveEvents() file: pkg/approvaltest/approvals.go start line: 54 end line: 67 size: 12 LOC McCabe index: 2 number of parameters: 4 id: 58 unit: func ApproveFields() file: pkg/approvaltest/approvals.go start line: 80 end line: 93 size: 12 LOC McCabe index: 2 number of parameters: 4 id: 59 unit: func approveFields() file: pkg/approvaltest/approvals.go start line: 166 end line: 181 size: 12 LOC McCabe index: 3 number of parameters: 3 id: 60 unit: func() file: pkg/espoll/query.go start line: 31 end line: 41 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: func decodeJSONFile() file: cmd/check-approvals/main.go start line: 96 end line: 106 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 62 unit: func decodeJSONFile() file: cmd/flatten-approvals/main.go start line: 103 end line: 113 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 63 unit: func initCacheDir() file: cmd/apmtool/cache.go start line: 106 end line: 116 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 64 unit: func AllCondition() file: pkg/espoll/client.go start line: 154 end line: 163 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 65 unit: func() file: pkg/espoll/search.go start line: 89 end line: 98 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 66 unit: func() file: pkg/espoll/search.go start line: 143 end line: 152 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 67 unit: func newOTLPExporters() file: pkg/tracegen/otlp.go start line: 163 end line: 172 size: 10 LOC McCabe index: 3 number of parameters: 3 id: 68 unit: func() file: pkg/tracegen/otlp.go start line: 268 end line: 280 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 69 unit: func findFiles() file: cmd/check-approvals/main.go start line: 85 end line: 94 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 70 unit: func() file: pkg/espoll/query.go start line: 59 end line: 67 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 71 unit: func() file: pkg/espoll/query.go start line: 75 end line: 83 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 72 unit: func newConfig() file: pkg/metricgen/config.go start line: 75 end line: 84 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 73 unit: func formatDurationElasticsearch() file: pkg/apmclient/client.go start line: 186 end line: 193 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 74 unit: func combineCleanup() file: pkg/tracegen/otlp.go start line: 249 end line: 256 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 75 unit: func SetOTLPTracePropagator() file: pkg/tracegen/otlp.go start line: 291 end line: 300 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 76 unit: func suffixString() file: cmd/apmtool/tracegen.go start line: 76 end line: 83 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 77 unit: func() file: pkg/tracegen/stats.go start line: 34 end line: 40 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 78 unit: func NewListServiceCmd() file: cmd/apmtool/services.go start line: 43 end line: 49 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 79 unit: func() file: pkg/espoll/search.go start line: 76 end line: 81 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 80 unit: func generateMetrics() file: pkg/metricgen/otlp.go start line: 90 end line: 96 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 81 unit: func NewRandomTraceID() file: pkg/tracegen/util.go start line: 29 end line: 34 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 82 unit: func main() file: cmd/flatten-approvals/main.go start line: 32 end line: 37 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 83 unit: func pluralize() file: cmd/apmtool/tracegen.go start line: 64 end line: 69 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 84 unit: func WithTimeout() file: pkg/espoll/client.go start line: 136 end line: 140 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: func WithInterval() file: pkg/espoll/client.go start line: 143 end line: 147 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: func WithCondition() file: pkg/espoll/client.go start line: 166 end line: 170 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 87 unit: func() file: pkg/espoll/query.go start line: 47 end line: 51 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: func() file: pkg/espoll/query.go start line: 90 end line: 94 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: func NewConfig() file: pkg/apmclient/config.go start line: 64 end line: 68 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 90 unit: func WithAPIKey() file: pkg/metricgen/config.go start line: 86 end line: 90 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 91 unit: func WithAPMServerURL() file: pkg/metricgen/config.go start line: 92 end line: 96 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 92 unit: func WithVerifyServerCert() file: pkg/metricgen/config.go start line: 98 end line: 102 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: func WithElasticAPMServiceName() file: pkg/metricgen/config.go start line: 108 end line: 112 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 94 unit: func WithOTLPServiceName() file: pkg/metricgen/config.go start line: 118 end line: 122 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: func WithOTLPProtocol() file: pkg/metricgen/config.go start line: 128 end line: 132 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: func WithSampleRate() file: pkg/tracegen/config.go start line: 59 end line: 63 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: func WithAPMServerURL() file: pkg/tracegen/config.go start line: 66 end line: 70 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 98 unit: func WithAPIKey() file: pkg/tracegen/config.go start line: 73 end line: 77 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: func WithTraceID() file: pkg/tracegen/config.go start line: 80 end line: 84 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: func WithInsecureConn() file: pkg/tracegen/config.go start line: 87 end line: 91 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: func WithElasticAPMServiceName() file: pkg/tracegen/config.go start line: 97 end line: 101 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: func WithOTLPServiceName() file: pkg/tracegen/config.go start line: 107 end line: 111 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: func WithOTLPProtocol() file: pkg/tracegen/config.go start line: 117 end line: 121 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: func() file: pkg/espoll/search.go start line: 100 end line: 103 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: func() file: pkg/espoll/search.go start line: 105 end line: 108 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: func encodeQueryJSON() file: pkg/espoll/query.go start line: 96 end line: 99 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 107 unit: func() file: pkg/metricgen/intake.go start line: 84 end line: 87 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: func newUniqueServiceName() file: cmd/apmtool/tracegen.go start line: 71 end line: 74 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 109 unit: func() file: pkg/espoll/client.go start line: 125 end line: 127 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: func() file: pkg/espoll/search.go start line: 110 end line: 112 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: func() file: pkg/espoll/search.go start line: 130 end line: 132 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: func() file: pkg/espoll/search.go start line: 136 end line: 138 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 113 unit: func() file: pkg/espoll/search.go start line: 191 end line: 193 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 114 unit: func removeReceived() file: pkg/approvaltest/approvals.go start line: 223 end line: 225 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: func() file: pkg/metricgen/stats.go start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 116 unit: func formatTraceparentHeader() file: pkg/tracegen/distributed.go start line: 50 end line: 52 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 117 unit: func() file: pkg/tracegen/otlp.go start line: 286 end line: 289 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: func main() file: cmd/check-approvals/main.go start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 119 unit: func() file: cmd/apmtool/commands.go start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: func newCacheFlock() file: cmd/apmtool/cache.go start line: 99 end line: 101 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 121 unit: func WrapClient() file: pkg/espoll/client.go start line: 39 end line: 39 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: func() file: cmd/apmtool/espoll.go start line: 169 end line: 169 size: 1 LOC McCabe index: 1 number of parameters: 1