MCPcopy Create free account

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

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

↓ 5 callersFunctionmakeConfigArray
makeConfigArray flattens a map of configs into a slice. Creating a new slice allows for thread-safe usage by other external, as long as the field valu
pkg/clusteragent/clusterchecks/helpers.go:28
↓ 5 callersFunctionmakeConfigMapData
(v interface{})
pkg/clusteragent/custommetrics/store_configmap_test.go:48
↓ 5 callersFunctionmakeProcStatsWithPerm
(pid int32)
pkg/process/checks/sysprobe_stats_test.go:20
↓ 5 callersFunctionmakeProcess
(cmdline []string, comm string)
pkg/languagedetection/detector_test.go:14
↓ 5 callersFunctionmakeTxnFromRequestString
(s string)
pkg/network/protocols/http/model_linux_test.go:13
↓ 5 callersMethodmapOverLoadedConfigs
mapOverLoadedConfigs calls the given function with a map of all loaded configs (those which have been scheduled but not unscheduled). The call is made
pkg/autodiscovery/configmgr.go:47
↓ 5 callersFunctionmarkText
(doc, from, to, options, type)
cmd/agent/gui/views/private/js/codemirror.js:5833
↓ 5 callersMethodmarshalEvent
nolint:deadcode,unused
pkg/security/tests/module_tester.go:1165
↓ 5 callersFunctionmeasureForScrollbars
(cm)
cmd/agent/gui/views/private/js/codemirror.js:3499
↓ 5 callersFunctionmergeProcWithSysprobeStats
mergeProcWithSysprobeStats takes a process by PID map and fill the stats from system probe into the processes in the map
pkg/process/checks/process.go:611
↓ 5 callersFunctionmetaVersion
(rawMeta json.RawMessage)
pkg/config/remote/uptane/util.go:54
↓ 5 callersFunctionmoveOnce
(boundToLine)
cmd/agent/gui/views/private/js/codemirror.js:8552
↓ 5 callersFunctionn
()
cmd/agent/gui/views/private/js/purify.min.js:2
↓ 5 callersFunctionnewAcErrorStats
newAcErrorStats returns an instance holding autoconfig errors stats
pkg/autodiscovery/stats.go:36
↓ 5 callersFunctionnewCollectorErrors
newCollectorErrors returns an instance holding autoconfig errors stats
pkg/collector/stats.go:22
↓ 5 callersFunctionnewConntrackCache
(maxSize int, orphanTimeout time.Duration)
pkg/network/netlink/conntracker.go:310
↓ 5 callersFunctionnewDelayedFxInvocation
newDelayedFxInvocation creates a new delayedFxInvocation wrapping the given function. The given function can have any number of arguments that will b
pkg/util/fxutil/args.go:29
↓ 5 callersMethodnewElection
newElection creates an election. If `namespace`/`election` does not exist, it is created.
pkg/util/kubernetes/apiserver/leaderelection/leaderelection_engine.go:137
↓ 5 callersFunctionnewEvent
()
pkg/collector/corechecks/containerlifecycle/event.go:45
↓ 5 callersFunctionnewEventProcessor
(conf *config.AgentConfig)
pkg/trace/agent/agent.go:643
↓ 5 callersFunctionnewExistCache
(path string)
pkg/ebpf/ksyms.go:25
↓ 5 callersFunctionnewFakeHorizontalPodAutoscaler
(ns, name string, metrics []autoscaler.MetricSpec)
pkg/clusteragent/externalmetrics/autoscaler_watcher_test.go:116
↓ 5 callersFunctionnewFakeKubeletPod
(namespace, name, uid, ip string)
pkg/util/kubernetes/apiserver/services_kubelet_test.go:266
↓ 5 callersFunctionnewFakePod
(namespace, name, uid, ip string)
pkg/util/kubernetes/apiserver/metadata_controller_test.go:483
↓ 5 callersFunctionnewFileRegistry
()
pkg/network/usm/utils/file_registry_test.go:173
↓ 5 callersFunctionnewFlushCountStats
(name string)
pkg/aggregator/aggregator.go:78
↓ 5 callersFunctionnewHTTP2Encoder
(http2Payloads map[http.Key]*http.RequestStats)
pkg/network/encoding/http2.go:25
↓ 5 callersFunctionnewHashedTagsFromSlice
(tags []string)
pkg/tagset/hashed_tags_pvt.go:23
↓ 5 callersFunctionnewKafkaEncoder
(kafkaPayloads map[kafka.Key]*kafka.RequestStat)
pkg/network/encoding/kafka.go:34
↓ 5 callersFunctionnewMetricFilterFromConfig
newMetricFilterFromConfig creates a new container filter, sourcing patterns from the pkg/config options, to be used only for metrics
pkg/util/containers/filter.go:251
↓ 5 callersFunctionnewMockLanguagePatcher
(mockClient dynamic.Interface, mockStore *workloadmeta.MockStore)
pkg/clusteragent/languagedetection/patcher_test.go:28
↓ 5 callersFunctionnewOffsetManager
(numCPUS int)
pkg/network/protocols/events/batch_offsets.go:32
↓ 5 callersFunctionnewProcessProbe
(config config.Reader, options ...procutil.Option)
pkg/process/checks/process_probe.go:15
↓ 5 callersFunctionnewPromServicesProvider
(checks []*types.PrometheusCheck, api ServiceAPI, collectEndpoints bool)
pkg/autodiscovery/providers/prometheus_services.go:123
↓ 5 callersFunctionnewReleasesStore
()
pkg/collector/corechecks/cluster/helm/releases_store.go:24
↓ 5 callersFunctionnewSafeReader
()
pkg/logs/tailers/docker/reader.go:25
↓ 5 callersFunctionnewStore
newStore creates a store
pkg/autodiscovery/store.go:67
↓ 5 callersFunctionnewStringInterner
(maxSize int, internerID int)
comp/dogstatsd/server/intern.go:58
↓ 5 callersFunctionnewTestOutputMountInfo
(name string)
pkg/gohai/filesystem/filesystem_nix_test.go:269
↓ 5 callersFunctionnewTransactionalStore
(db *bbolt.DB)
pkg/config/remote/uptane/transactional_store.go:40
↓ 5 callersFunctionnewWorkerWithOptions
newWorkerWithOptions returns an instance of a `Worker` with an override for the `aggregator.GetDefaultSender()`. The purpose of this pass-through is t
pkg/collector/worker/worker.go:93
↓ 5 callersFunctionnextMessage
(packet *[]byte, eolTermination bool)
comp/dogstatsd/server/server.go:560
↓ 5 callersFunctionnlmsgAlign
#define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
pkg/network/netlink/align.go:25
↓ 5 callersFunctionnodeToEvaluator
(obj interface{}, opts *Opts, state *State)
pkg/security/secl/compiler/eval/eval.go:383
↓ 5 callersFunctionnormalizePackageName
(packageName string)
cmd/agent/subcommands/integrations/command.go:223
↓ 5 callersMethodnumEmptyRunners
()
pkg/clusteragent/clusterchecks/checks_distribution.go:175
↓ 5 callersFunctionoptEnableDebugLogging
()
pkg/util/winutil/eventlog/subscription/subscription_test.go:31
↓ 5 callersMethodoption
option generates the fx.Option value to include in an fx.App that will provide the argument values.
pkg/util/fxutil/args.go:45
↓ 5 callersFunctionparseBytesToInt
(buf []byte, base int, bitSize int)
pkg/process/procutil/process_linux.go:568
↓ 5 callersFunctionparseFloat64
the std API does not have methods to do []byte => float parsing we use this unsafe trick to avoid having to allocate one string for every parsed float
comp/dogstatsd/server/parse.go:249
↓ 5 callersMethodparseTags
(rawTags []byte)
comp/dogstatsd/server/parse.go:87
↓ 5 callersFunctionparse_major_versions
(major_versions)
tasks/release.py:894
↓ 5 callersFunctionpayloadsEqual
payloadsEqual validates that the traces in from are the same as the ones in to.
cmd/trace-agent/test/testsuite/traces_test.go:189
↓ 5 callersMethodpipelineStatsProxyHandler
pipelineStatsProxyHandler returns a new HTTP handler which will proxy requests to the pipeline stats intake.
pkg/trace/api/pipeline_stats.go:48
↓ 5 callersMethodpollOrgStatus
()
pkg/config/remote/service/service.go:337
↓ 5 callersFunctionprintYaml
(w io.Writer, data []byte)
pkg/flare/config_check.go:102
↓ 5 callersMethodprocessEvents
(events []types.EntityEvent, replace bool)
pkg/tagger/remote/tagstore.go:36
↓ 5 callersMethodprocessNewConfig
processNewConfig store (in template cache) and resolves a given config, returning the changes to be made.
pkg/autodiscovery/autoconfig.go:247
↓ 5 callersMethodprocessNewService
processNewService takes a service, tries to match it against templates and triggers scheduling events if it finds a valid config for it.
pkg/autodiscovery/autoconfig.go:415
↓ 5 callersFunctionprofilingEndpoints
profilingEndpoints returns the profiling intake urls and their corresponding api keys based on agent configuration. The main endpoint is always return
pkg/trace/api/profiles.go:36
↓ 5 callersMethodput
(bucketName string, path string, data []byte)
pkg/config/remote/uptane/transactional_store.go:193
↓ 5 callersMethodratesByService
ratesByService returns a map of service signatures mapping to the rates identified using the signatures.
pkg/trace/sampler/catalog.go:73
↓ 5 callersFunctionregexFindStringSubmatchMap
regexFindStringSubmatchMap returns a map of strings where the keys are the name of the submatch groups defined in its expressions and the values are t
pkg/collector/corechecks/nvidia/jetson/jetson.go:65
↓ 5 callersFunctionregexSubexpIndex
Only available in Go 15, so implement it here for now
pkg/collector/corechecks/nvidia/jetson/jetson.go:79
↓ 5 callersMethodregisterCollector
RegisterCollector registers a collector
pkg/util/containers/metrics/provider/registry.go:107
↓ 5 callersMethodreleasePayload
releasePayload releases the payload p and records the specified event. The payload should not be used again after a release.
pkg/trace/writer/sender.go:314
↓ 5 callersFunctionrelease_entry_for
(agent_major_version)
tasks/utils.py:515
↓ 5 callersFunctionremoveAbsolutePath
removeAbsolutePath removes the absolute file path that is automatically output by cgo -godefs and replaces it with only the filename
pkg/ebpf/cgo/genpost.go:40
↓ 5 callersMethodremoveOrphans
(now time.Time)
pkg/network/netlink/conntracker.go:392
↓ 5 callersMethodreportExitCodes
reportExitCodes monitors events for non zero exit codes and sends service checks
pkg/collector/corechecks/containers/docker/events.go:62
↓ 5 callersFunctionrequestGenerator
(t *testing.T, targetAddr string, reqBody []byte)
pkg/network/usm/monitor_test.go:841
↓ 5 callersMethodreset
reset method is only used for testing
pkg/util/cloudproviders/cloudfoundry/cccache_test.go:23
↓ 5 callersMethodresolve
(pid, tid uint32, inode uint64, useProcFS bool)
pkg/security/resolvers/process/resolver_linux.go:576
↓ 5 callersFunctionrevert_kernel_packages
(ctx, kernel_packages_dir, backup_dir)
tasks/kernel_matrix_testing/download.py:134
↓ 5 callersMethodrevision
()
pkg/collector/corechecks/cluster/helm/release.go:46
↓ 5 callersFunctionrmClass
(node, cls)
cmd/agent/gui/views/private/js/codemirror.js:52
↓ 5 callersMethodrun
(t *testing.T)
cmd/manager/auto_exit_noprocess_test.go:23
↓ 5 callersMethodrunRealtime
runRealtime runs the realtime ProcessCheck to collect statistics about the running processes. Underying procutil.Probe is responsible for the actual i
pkg/process/checks/process_rt.go:22
↓ 5 callersFunctionrunString
(code string)
rtloader/test/rtloader/rtloader.go:74
↓ 5 callersFunctionsanitizeLabelName
(s string)
pkg/collector/corechecks/cluster/ksm/customresources/utils.go:116
↓ 5 callersMethodscanNumber
(seenDecimalPoint bool)
pkg/obfuscate/sql_tokenizer.go:733
↓ 5 callersMethodscanString
(delim rune, kind TokenKind)
pkg/obfuscate/sql_tokenizer.go:786
↓ 5 callersFunctionscrollToCoords
(cm, x, y)
cmd/agent/gui/views/private/js/codemirror.js:3432
↓ 5 callersMethodseek
seek seeks to the cursor if it is not empty or the end of the journal, returns an error if the operation failed.
pkg/logs/tailers/journald/tailer.go:198
↓ 5 callersMethodsend
(senderFct func(sender StatsTelemetrySender))
pkg/telemetry/stats_telemetry.go:59
↓ 5 callersMethodsendDistributionCount
(metric string, value float64, hostname string, tags []string, monotonic bool, sender sender.Sender)
pkg/collector/corechecks/containers/kubelet/provider/prometheus/provider.go:285
↓ 5 callersFunctionsetBoolValue
(boolName string, value bool)
pkg/security/tests/selinux_test.go:239
↓ 5 callersMethodsetConfigError
setConfigError will safely set the error for a check configuration file
pkg/autodiscovery/stats.go:44
↓ 5 callersMethodsetFirstTraceTags
setFirstTraceTags sets additional tags on the first trace ever processed by the agent, so that we can see that the customer has successfully onboarded
pkg/trace/agent/agent.go:235
↓ 5 callersFunctionsetMetricOTLP
setMetricOTLP sets the k/v OTLP attribute pair as a metric on span s.
pkg/trace/api/otlp.go:491
↓ 5 callersFunctionsetNumWorkers
setNumWorkers is a helper to set the effective number of workers for a given config.
pkg/config/config.go:1903
↓ 5 callersMethodsetUpToDate
setUpToDate is a thread-safe method to update the upToDate value
pkg/autodiscovery/providers/prometheus_services.go:190
↓ 5 callersFunctionsetup
()
pkg/logs/schedulers/ad/scheduler_test.go:21
↓ 5 callersFunctionsetup
(proxyHostPort string, originalRuntimeHostPort string, processor invocationlifecycle.InvocationProcessor)
pkg/serverless/proxy/proxy.go:29
↓ 5 callersFunctionsetupConfig
(tags []string)
pkg/logs/internal/tag/provider_benchmark_test.go:15
↓ 5 callersFunctionsetupDataScrubber
(t *testing.T)
pkg/process/procutil/data_scrubber_test.go:16
↓ 5 callersFunctionsetupScrubbing
Set up for scrubbing tests, by temporarily setting Scrubber; this avoids testing the default scrubber's functionality in this module
pkg/util/log/log_test.go:160
↓ 5 callersFunctionsetupStatsTracker
(timeFrame time.Duration, bucketSize time.Duration)
pkg/util/statstracker/stats_tracker_test.go:15
↓ 5 callersFunctionshouldIgnore
shouldIgnore resolves symlinks in /var/log/containers in order to use that redirection to validate that we will be reading a file for the correct cont
pkg/logs/launchers/file/provider/file_provider.go:363
↓ 5 callersFunctionskipHttpTransactionProto
(dAtA []byte)
comp/forwarder/defaultforwarder/internal/retry/HttpTransactionProto.pb.go:1401
← previousnext →3,501–3,600 of 32,574, ranked by callers