MCPcopy Create free account

hub / github.com/DataDog/datadog-agent / functions

Functions32,574 in github.com/DataDog/datadog-agent

↓ 8 callersFunctionaddMetricVal
(ms map[string]*metric, key string, val int64)
pkg/security/tests/discarders_stress_test.go:83
↓ 8 callersMethodaddNotEmpty
addNotEmpty builds and appends non-empty tags. It discards the tag if one of the arguments is empty.
pkg/util/kubernetes/tags/builder.go:31
↓ 8 callersFunctionaddTag
(tagMap map[string]string, tag string)
pkg/serverless/tags/tags.go:208
↓ 8 callersFunctionaddTransaction
( r *require.Assertions, capacity *QueueDurationCapacity, domain string, payloadSize int, unixTime int64)
comp/forwarder/defaultforwarder/internal/retry/queue_duration_capacity_test.go:97
↓ 8 callersFunctionalignTs
alignTs returns the provided timestamp truncated to the bucket size. It gives us the start time of the time bucket in which such timestamp falls.
pkg/trace/stats/concentrator.go:311
↓ 8 callersFunctionassertAggSamplersLen
(t *testing.T, agg *BufferedAggregator, n int)
pkg/aggregator/sender_test.go:54
↓ 8 callersFunctionassertConfigValueEqual
(t *testing.T, config map[interface{}]interface{}, key string, expectedValue interface{})
test/new-e2e/tests/agent-subcommands/config/config_helpers.go:47
↓ 8 callersFunctionassertFilesExist
assertFilesExist verifies that all files in filenames exist in the flare archive
test/new-e2e/tests/agent-subcommands/flare/flare_helpers.go:17
↓ 8 callersFunctionassertMetaVersion
(t *testing.T, state map[string]MetaState, metaName string, version uint64)
pkg/config/remote/uptane/client_test.go:131
↓ 8 callersFunctionassertNothingInChannel
(t *testing.T, ch chan *message.Message)
pkg/logs/internal/decoder/line_handler_test.go:40
↓ 8 callersFunctionassertingServer
asserting Server starts a TLS Server with provided callback function used to perform assertions on the contents of the request the server received. If
pkg/trace/api/telemetry_test.go:26
↓ 8 callersFunctionbenchmarkJSONPayloadBuilderServiceCheck
(b *testing.B, numberOfItem int)
pkg/serializer/internal/metrics/service_checks_test.go:169
↓ 8 callersFunctionbenchmarkPayloadsServiceCheck
(b *testing.B, numberOfItem int)
pkg/serializer/internal/metrics/service_checks_test.go:205
↓ 8 callersFunctionbenchmarkSplit
(b *testing.B, numberOfEvents int)
pkg/serializer/serializer_benchmark_test.go:53
↓ 8 callersMethodclose
(self)
test/e2e/cws-tests/tests/lib/docker.py:148
↓ 8 callersMethodconfigureRunner
(instance, initConfig integration.Data)
pkg/collector/corechecks/embed/jmx/runner.go:42
↓ 8 callersFunctioncountEvents
(check *Check, senderEventCall *mock.Call, numEvents uint)
pkg/collector/corechecks/windows_event_log/check_test.go:156
↓ 8 callersFunctioncreateDefaultMockSystemdStats
()
pkg/collector/corechecks/systemd/systemd_test.go:37
↓ 8 callersFunctioncreateTmpSysctl
(t *testing.T, procRoot, sysctl string, v string)
pkg/network/config/sysctl/sysctl_test.go:101
↓ 8 callersFunctioncreateTransactionWithPayloadSize
(payloadSize int)
comp/forwarder/defaultforwarder/internal/retry/transaction_retry_queue_test.go:148
↓ 8 callersMethoddequeue
(handler func(record *perf.Record), generation uint64, metric *Metric, opts *Opts)
pkg/security/probe/eventstream/reorderer/reorderer.go:123
↓ 8 callersFunctiondisableCmdPort
disableCmdPort overrrides the `cmd_port` configuration so that when the server starts up, it does not do so on the same port as a running agent. Idea
cmd/agent/subcommands/jmx/command.go:224
↓ 8 callersMethoddump
(params *api.DumpNetworkNamespaceParams)
pkg/security/resolvers/netns/resolver.go:565
↓ 8 callersMethodendExecutionSpan
endExecutionSpan builds the function execution span and sends it to the intake. It should be called at the end of the invocation.
pkg/serverless/invocationlifecycle/trace.go:76
↓ 8 callersMethodequals
(other batch)
comp/languagedetection/client/client_test.go:1046
↓ 8 callersFunctionescape
(in string)
pkg/security/security_profile/activity_tree/activity_tree_proto_enc_v1.go:303
↓ 8 callersFunctionexecCommand
(inputPayload string)
pkg/secrets/fetch_secret.go:44
↓ 8 callersMethodexecuteCommand
(command string, commandArgs ...AgentArgsOption)
test/new-e2e/pkg/utils/e2e/client/agent_cmd_runner.go:40
↓ 8 callersMethodextractFromMapWithFn
(input map[string]string, mapping map[string]string, fn func(string, string))
pkg/tagger/collectors/workloadmeta_extract.go:667
↓ 8 callersFunctionextractLabelSelector
(ls *metav1.LabelSelector)
pkg/collector/corechecks/cluster/orchestrator/transformers/k8s/common.go:54
↓ 8 callersFunctionextractShortPathFromFullPath
(fullPath string)
pkg/config/logs/log.go:439
↓ 8 callersFunctionextractTraceContextFromDatadogHeader
(ddPayloadValue events.SQSMessageAttribute)
pkg/serverless/trace/inferredspan/propagation.go:102
↓ 8 callersFunctionfastHeaderGet
fastHeaderGet returns the given key from the header, avoiding the caonical transformation of key that is normally applied by http.Header.Get.
pkg/trace/api/otlp.go:122
↓ 8 callersFunctionfetchSecret
fetchSecret receives a list of secrets name to fetch, exec a custom executable to fetch the actual secrets and returns them.
pkg/secrets/fetch_secret.go:120
↓ 8 callersMethodflowI4Ranges
()
pkg/network/tracer/offsetguess/overlaps.go:70
↓ 8 callersMethodflowI6Ranges
()
pkg/network/tracer/offsetguess/overlaps.go:86
↓ 8 callersMethodflush
()
pkg/logs/internal/decoder/multiline_handler.go:63
↓ 8 callersMethodframe
frame returns the current frame
pkg/network/netlink/attribute_scanner.go:150
↓ 8 callersFunctionge
(t)
cmd/agent/gui/views/private/js/jquery-3.5.1.min.js:2
↓ 8 callersFunctiongetConf
()
pkg/trace/api/debugger_test.go:276
↓ 8 callersFunctiongetConfigFloat
(cfg config.Reader, subkey string)
comp/dogstatsd/listeners/ratelimit/mem_based_rate_limiter.go:93
↓ 8 callersFunctiongetContainerTags
getContainerTag returns container and orchestrator tags belonging to containerID. If containerID is empty or no tags are found, an empty string is ret
pkg/trace/api/api.go:747
↓ 8 callersFunctiongetEndpoint
(t *testing.T, u string)
pkg/process/util/api/config/endpoint_test.go:86
↓ 8 callersMethodgetEntity
(entityID string)
pkg/tagger/remote/tagstore.go:66
↓ 8 callersFunctiongetMetadataItem
(ctx context.Context, endpoint string, forceIMDSv2 bool)
pkg/util/ec2/imds_helpers.go:70
↓ 8 callersMethodgetSecretName
()
pkg/clusteragent/admission/controllers/webhook/config.go:52
↓ 8 callersMethodgetSecretNs
()
pkg/clusteragent/admission/controllers/webhook/config.go:53
↓ 8 callersMethodgetTargetFile
(path string)
pkg/config/remote/uptane/target_store.go:36
↓ 8 callersMethodgetValue
getValue returns value, error
pkg/autodiscovery/providers/consul.go:243
↓ 8 callersFunctionget_resources_in_stack
(stack, list_fn)
tasks/kernel_matrix_testing/libvirt.py:8
↓ 8 callersFunctionhandler
(_event, _context)
test/integration/serverless/src/appSecPython.py:4
↓ 8 callersFunctionhttpsSupported
()
pkg/network/tracer/tracer_usm_linux_test.go:62
↓ 8 callersMethodincreaseRate
()
comp/dogstatsd/listeners/ratelimit/geometric_rate_limiter.go:49
↓ 8 callersFunctioninitDNSTestsWithDomainCollection
(t *testing.T, localDNS bool)
pkg/network/dns/snooper_test.go:100
↓ 8 callersMethodinsert
insert adds an item into a multimap
pkg/autodiscovery/multimap.go:20
↓ 8 callersFunctionisAllowedTag
(value string, includeList, excludeList []*regexp.Regexp)
pkg/util/cloudproviders/cloudfoundry/types.go:381
↓ 8 callersFunctionisEnabled
(envValue string)
cmd/serverless-init/log/log.go:59
↓ 8 callersMethodisPause
(namespace string, containerID string)
pkg/collector/corechecks/containers/containerd/events.go:154
↓ 8 callersMethodis_iot
(self)
tasks/flavor.py:11
↓ 8 callersFunctionisaffirmative
(o optional.Option[bool])
pkg/collector/corechecks/windows_event_log/config_helpers.go:63
↓ 8 callersMethodloadMeta
(name string, loadContent bool)
pkg/compliance/k8sconfig/loader.go:117
↓ 8 callersFunctionloadYamlProfiles
loadYamlProfiles will load the profiles from disk only once and store it in globalProfileConfigMap. The subsequent call to it will return profiles sto
pkg/collector/corechecks/snmp/internal/profile/profile_yaml.go:34
↓ 8 callersFunctionmakeSpec
(metricName string, labels map[string]string)
pkg/util/kubernetes/autoscalers/autoscalers_test.go:441
↓ 8 callersMethodmakeTailer
makeTailer makes a new tailer, using function pointers to allow testing.
pkg/logs/launchers/container/tailerfactory/factory.go:73
↓ 8 callersFunctionmarkFilteredGroupable
markFilteredGroupable returns the appropriate TokenKind to mark this token as filtered groupable.
pkg/obfuscate/sql.go:275
↓ 8 callersFunctionmatchLogsConfig
matchLogsConfig matches config.LogsConfig (for verifying templates are applied)
pkg/autodiscovery/configmgr_test.go:91
↓ 8 callersFunctionmax
max returns the maximum value between a and b.
cmd/agent/api/internal/agent/agent.go:525
↓ 8 callersFunctionmergeKeyValues
mergeKeyValues merges label keys and values slice pairs into a single slice pair. Arguments are passed as equal-length pairs of slices, where the firs
pkg/collector/corechecks/cluster/ksm/customresources/utils.go:157
↓ 8 callersMethodmkDir
(name string)
pkg/logs/launchers/file/provider/file_provider_test.go:62
↓ 8 callersFunctionnewCgroupV2
(identifier, cgroupRoot, relativePath string, controllers map[string]struct{}, pidMapper pidMapper)
pkg/util/cgroups/cgroupv2.go:23
↓ 8 callersFunctionnewCollectTWithLog
(t *assert.CollectT, logf func(format string, args ...interface{}))
pkg/collector/corechecks/windows_event_log/check_test.go:57
↓ 8 callersFunctionnewConntracker
(maxSize int)
pkg/network/netlink/conntracker_test.go:427
↓ 8 callersFunctionnewFakeKubeletPodEndpointAddress
(nodeName string, pod *kubelet.Pod)
pkg/util/kubernetes/apiserver/services_kubelet_test.go:277
↓ 8 callersFunctionnewJSONObfuscator
(cfg *JSONConfig, o *Obfuscator)
pkg/obfuscate/json.go:47
↓ 8 callersMethodnewLogSources
newLogSources returns a new log source initialized with the right path.
pkg/logs/launchers/file/provider/file_provider_test.go:76
↓ 8 callersFunctionnewProcessCache
(maxProcs int, filteredEnvs []string)
pkg/network/tracer/process_cache.go:77
↓ 8 callersFunctionnewSender
newSender returns a new sender based on the given config cfg.
pkg/trace/writer/sender.go:154
↓ 8 callersFunctionnewTestEvaluationSet
Test Utilities
pkg/security/secl/rules/evaluation_set_test.go:895
↓ 8 callersFunctionnewVM
(t *testing.T)
pkg/security/ebpf/tests/helpers_test.go:59
↓ 8 callersMethodnfConnRanges
()
pkg/network/tracer/offsetguess/overlaps.go:116
↓ 8 callersFunctionobfuscatePairIfNeeded
(pair string, envMap map[string]bool)
pkg/serverless/debug/debug.go:44
↓ 8 callersMethodparseMetricSample
parseMetricSample parses the given message and return the dogstatsdMetricSample read.
comp/dogstatsd/server/parse.go:109
↓ 8 callersFunctionparseStringBytes
parseStringBytes reads the next type in the msgpack payload and converts the BinType or the StrType in a valid string.
pkg/proto/pbgo/trace/decoder_bytes.go:40
↓ 8 callersFunctionpayloadWithCounts
(ts time.Time, k BucketsAggregationKey, hits, errors, duration uint64)
pkg/trace/stats/client_stats_aggregator_test.go:47
↓ 8 callersFunctionprocessCheckWithMockProbe
(t *testing.T)
pkg/process/checks/process_test.go:33
↓ 8 callersMethodprocessNewService
processNewService handles a new service, with the given AD identifiers
pkg/autodiscovery/configmgr.go:28
↓ 8 callersFunctionrateValue
(current, previous float64, currentTs, previousTs time.Time)
pkg/process/util/containers/containers.go:333
↓ 8 callersMethodrecover
(endpoint string)
comp/forwarder/defaultforwarder/blocked_endpoints.go:79
↓ 8 callersFunctionregLineChange
(cm, line, type)
cmd/agent/gui/views/private/js/codemirror.js:3940
↓ 8 callersFunctionremoveChildren
(e)
cmd/agent/gui/views/private/js/codemirror.js:61
↓ 8 callersFunctionrenderErrors
(w io.Writer, errs []error)
pkg/status/render.go:343
↓ 8 callersMethodreplaceBy
(start, end int, replaceBy string)
pkg/security/security_profile/activity_tree/paths_reducer.go:45
↓ 8 callersFunctionresetView
(cm)
cmd/agent/gui/views/private/js/codemirror.js:3954
↓ 8 callersFunctionserializeTestMeta
(meta interface{})
pkg/config/remote/uptane/util_test.go:45
↓ 8 callersMethodsetUnsafeReader
(reader io.ReadCloser)
pkg/logs/tailers/docker/reader.go:29
↓ 8 callersFunctionsetupFipsLogsConfig
(config Config, configPrefix string, url string)
pkg/config/config.go:1749
↓ 8 callersFunctionsimpleSelection
(anchor, head)
cmd/agent/gui/views/private/js/codemirror.js:4520
↓ 8 callersFunctionsleepAborted
(ctx context.Context, ch <-chan time.Time)
pkg/compliance/agent.go:620
↓ 8 callersFunctionsleepCtx
(ctx context.Context, d time.Duration)
cmd/agentless-scanner/main.go:2623
↓ 8 callersFunctionstandardTagsDigest
standardTagsDigest computes the hash of standard tags in a map
pkg/autodiscovery/listeners/common.go:56
← previousnext →2,001–2,100 of 32,574, ranked by callers