MCPcopy Create free account

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

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

↓ 37 callersMethodWithRego
(rego string, args ...any)
pkg/compliance/tests/helpers.go:166
↓ 37 callersFunctionchunk
(input []byte, size int)
pkg/logs/internal/framer/framer_test.go:35
↓ 37 callersMethodflush
(timestamp float64)
pkg/metrics/metric.go:61
↓ 36 callersMethodAdd
Add adds the item to the queue.
pkg/process/util/api/weighted_queue.go:114
↓ 36 callersMethodAppendUint64
(v uint64)
pkg/util/log/zap/zapencoder.go:116
↓ 36 callersMethodConfigLoadSecrets
These functions are used in unit tests. ConfigLoadSecrets determines whether secrets in the configuration file should be evaluated. This is typically
comp/core/config/params.go:150
↓ 36 callersMethodFloat64
Float64 implements pprof Flag interface
pkg/security/tests/module_stresser.go:61
↓ 36 callersMethodGenerateEvents
(channelName string, numEvents uint)
pkg/util/winutil/eventlog/test/test.go:36
↓ 36 callersMethodID
()
pkg/sbom/sbom.go:25
↓ 36 callersFunctionNewMockSenderWithSenderManager
NewMockSenderWithSenderManager returns a functional mocked Sender for testing
pkg/aggregator/mocksender/mocksender.go:41
↓ 36 callersFunctionSetConfdPathAndCleanProfiles
SetConfdPathAndCleanProfiles is used for testing only
pkg/collector/corechecks/snmp/internal/profile/testing_utils.go:26
↓ 36 callersMethodUnmarshalEasyJSON
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
pkg/security/serializers/serializers_linux_easyjson.go:2416
↓ 36 callersFunctionfakePod
(name string)
pkg/clusteragent/admission/mutate/test_utils.go:186
↓ 36 callersFunctionnetmaskToPrefixlen
(netmask string)
pkg/collector/corechecks/snmp/internal/report/report_utils.go:156
↓ 36 callersFunctionnewItem
(name string, weight int64)
pkg/process/util/api/weighted_queue_test.go:278
↓ 36 callersMethodsendMetric
(senderFunc func(string, float64, string, []string), metricName string, value *float64, tags []string)
pkg/collector/corechecks/containers/generic/processor.go:192
↓ 35 callersMethodEventType
EventType returns the event type this filter is filtering by. If the filter is nil, it returns EventTypeAll.
pkg/workloadmeta/filter.go:97
↓ 35 callersFunctionGetGlobalStore
GetGlobalStore returns a global instance of the workloadmeta store. It does not create one if it's not already set (see CreateGlobalStore) and returns
pkg/workloadmeta/store.go:833
↓ 35 callersFunctionGetNestedValue
GetNestedValue returns the value in the map specified by the array keys, where each value is another depth level in the map. Returns nil if the map do
pkg/util/json/nested_json.go:12
↓ 35 callersMethodGetServiceID
()
pkg/autodiscovery/listeners/types.go:27
↓ 35 callersMethodInfof
Infof logs the given formatted arguments at the info level
comp/core/log/component.go:40
↓ 35 callersMethodObserve
Observe the value to the Histogram value.
comp/core/telemetry/histogram.go:11
↓ 35 callersMethodSort
([]transaction.Transaction)
comp/forwarder/defaultforwarder/internal/retry/transaction_retry_queue.go:28
↓ 35 callersMethodUpdateEnv
UpdateEnv updates the environment. This affects only the test that calls this function. Test functions that don't call UpdateEnv have the environment
test/new-e2e/pkg/utils/e2e/e2e.go:540
↓ 35 callersMethodValueOrDefault
ValueOrDefault returns the value stored in the Value[T], or the default value of the type in case of error.
pkg/gohai/utils/value.go:70
↓ 35 callersFunctionassertGetMeta
(t *testing.T, store *remoteStore, path string, expectedContent []byte, expectedError error)
pkg/config/remote/uptane/remote_store_test.go:217
↓ 35 callersMethodbytes
bytes returns all the bytes that were advanced over since its last call. This excludes tkn.lastChar, which will remain in the buffer
pkg/obfuscate/sql_tokenizer.go:877
↓ 35 callersFunctionnewDefaultState
()
pkg/network/state_test.go:2174
↓ 35 callersFunctionparseEvent
(t *testing.T, rawEvent []byte)
comp/dogstatsd/server/parse_events_test.go:17
↓ 35 callersFunctionreplace
Replace all substrings matching regex pattern with given replacement string
test/integration/serverless/log_normalize.py:157
↓ 35 callersFunctionspNS
spNS adds `system_probe_config` namespace to configuration key
cmd/system-probe/config/ns.go:11
↓ 34 callersMethodAddSample
AddSample adds a new sample to the metric with contextKey, initializing a new metric as necessary. If contextKey is scheduled for removal (see Expire
pkg/metrics/check_metrics.go:69
↓ 34 callersFunctionAgentStackDef
AgentStackDef creates a stack definition containing a virtual machine and an Agent. See [ec2vm.Params] for available options for vmParams. See [agen
test/new-e2e/pkg/utils/e2e/stack_definition.go:154
↓ 34 callersMethodBytes
Bytes returns the container ID as a byte array
pkg/security/utils/cgroup.go:26
↓ 34 callersMethodGet
(ctx context.Context, key string, opts *client.GetOptions)
pkg/autodiscovery/providers/etcd.go:27
↓ 34 callersMethodGetMap
GetMap returns the underlying named map. This is useful if any maps are shared with other eBPF components. An individual tracer implementation may cho
pkg/network/tracer/connection/tracer.go:70
↓ 34 callersFunctionIsExcludedConnection
IsExcludedConnection returns true if a given connection should be excluded by the tracer based on user defined filters
pkg/network/network_filter.go:159
↓ 34 callersFunctionMap
Map returns a map by its name
pkg/security/probe/managerhelper/managerhelper.go:19
↓ 34 callersMethodMetadata
Metadata is used to access information describing the collector.
pkg/collector/corechecks/cluster/orchestrator/collectors/collector.go:37
↓ 34 callersMethodResolveProcessArgsFlags
(ev *Event, e *Process)
pkg/security/secl/model/field_handlers_unix.go:967
↓ 34 callersMethodResolveProcessArgsOptions
(ev *Event, e *Process)
pkg/security/secl/model/field_handlers_unix.go:968
↓ 34 callersMethodSetQueries
SetQueries is only used for testing in other packages
pkg/clusteragent/externalmetrics/model/datadogmetricinternal.go:310
↓ 34 callersFunctionTrackedCString
(str string)
pkg/collector/python/memory.go:111
↓ 34 callersMethodTriggerRetry
TriggerRetry triggers a new retry and returns the result
pkg/util/retry/retrier.go:91
↓ 34 callersMethodUnmarshalVT
([]byte)
pkg/security/proto/api/vt_grpc.go:34
↓ 34 callersFunctiondecodeBytes
These tests check the custom modifications made on top of the msgpack deserializer generated by tinylib/msgp.
pkg/proto/pbgo/trace/span_gen_modifs_test.go:19
↓ 34 callersFunctionget
(ch, right)
cmd/agent/gui/views/private/js/codemirror.js:2695
↓ 34 callersFunctionnewEmptyMessage
()
pkg/proto/pbgo/trace/span_gen_modifs_test.go:28
↓ 33 callersMethodAddRequest
AddRequest takes information about a HTTP transaction and adds it to the request stats
pkg/network/protocols/http/stats.go:199
↓ 33 callersFunctionAddressFromNetIP
AddressFromNetIP returns an Address from a provided net.IP
pkg/process/util/address.go:58
↓ 33 callersMethodConfig
Config runs config command and returns the runtime agent config
test/new-e2e/pkg/utils/e2e/client/agent.go:21
↓ 33 callersFunctionDebugf
Debugf is used to print a trace level log
pkg/security/seclog/logger.go:219
↓ 33 callersFunctionErrorf
Errorf formats message according to format specifier and writes to log with level = Error.
pkg/trace/log/logger.go:124
↓ 33 callersMethodGetID
GetID gets the EntityID for this entity.
pkg/workloadmeta/types.go:268
↓ 33 callersMethodGetMessages
GetMessages returns the messages stored in the buffer.
pkg/logs/sender/message_buffer.go:47
↓ 33 callersFunctionHasTopLevel
HasTopLevel returns true if span is top-level.
pkg/trace/traceutil/span.go:28
↓ 33 callersMethodSendStats
SendStats sends the metrics of the profile provider
pkg/security/security_profile/profile/profile_provider.go:27
↓ 33 callersMethod_get_version
(self, major, minor, patch, rc, devel)
tasks/unit-tests/version_tests.py:8
↓ 33 callersMethodcreateFileWithTime
(name string, time time.Time)
pkg/logs/launchers/file/provider/file_provider_test.go:44
↓ 33 callersFunctiongenPayload
(n int)
pkg/network/tracer/tracer_test.go:975
↓ 33 callersFunctionparseRule
(rule string)
pkg/security/secl/compiler/ast/secl_test.go:14
↓ 32 callersMethodCut
Cut cuts off a new tracer payload from the `p` with [0, i-1] chunks and keeps [i, n-1] chunks in the original payload `p`.
pkg/proto/pbgo/trace/trace.go:29
↓ 32 callersMethodDo
(req *http.Request)
pkg/serverless/registration/utils.go:27
↓ 32 callersFunctionGetClient
GetClient is a convenience function returning an http client `GetClient(false)` must be used only for HTTP requests whose destination is localhost (ie
pkg/api/util/doget.go:30
↓ 32 callersMethodIsDir
()
pkg/snmp/traps/oid_resolver/oid_resolver_test.go:33
↓ 32 callersMethodLoad
(senderManager sender.SenderManager, config integration.Config, instance integration.Data)
pkg/collector/check/loader.go:19
↓ 32 callersFunctionSetAuthToken
SetAuthToken sets the session token Requires that the config has been set up before calling
pkg/api/util/util.go:25
↓ 32 callersFunctionSetServiceMapping
SetServiceMapping sets the serviceMapping global variable, primarily for tests.
pkg/serverless/trace/inferredspan/span_enrichment.go:44
↓ 32 callersMethodShutdown
Shutdown trigger shutdown of the flow processing workers
comp/netflow/goflowlib/flowstate.go:42
↓ 32 callersFunctionenableProgram
(enabled map[string]struct{}, name string)
pkg/network/tracer/connection/fentry/probes.go:125
↓ 32 callersFunctionfilterEnvs
FilterEnvs returns an array of environment variable key value pairs matching the desired keys nolint:unused
pkg/security/secl/model/args_envs.go:84
↓ 32 callersFunctionnewBlockedEndpoints
(config config.Component, log log.Component)
comp/forwarder/defaultforwarder/blocked_endpoints.go:29
↓ 32 callersFunctionparseRFC3339Time
(t *testing.T, s string)
pkg/process/checks/process_events_common.go:19
↓ 31 callersMethodBuildID
BuildID is to be called by the check's Config() method to generate the unique check ID.
pkg/collector/corechecks/checkbase.go:71
↓ 31 callersFunctionBuildTaggerEntityName
BuildTaggerEntityName builds a valid tagger entity name for a given cid.
pkg/util/containers/entity.go:31
↓ 31 callersMethodDebugf
(format string, params ...interface{})
pkg/trace/log/logger.go:38
↓ 31 callersMethodReadConfig
(in io.Reader)
pkg/config/model/types.go:116
↓ 31 callersMethodStore
([]transaction.Transaction)
comp/forwarder/defaultforwarder/internal/retry/transaction_retry_queue.go:21
↓ 31 callersFunctionWarnf
Warnf is used to print a warn
pkg/security/seclog/logger.go:229
↓ 31 callersMethodaddCheck
(checkID string, workersNeeded float64, runner string)
pkg/clusteragent/clusterchecks/checks_distribution.go:96
↓ 31 callersMethodaddTag
(key string, value string)
pkg/serverless/invocationlifecycle/lifecycle.go:369
↓ 31 callersFunctionassertOptionalValue
(t *testing.T, assertCompare assert.ComparisonAssertionFunc, o optional.Option[T], expected T)
pkg/collector/corechecks/windows_event_log/config_test.go:18
↓ 31 callersFunctiongetProbeWithPermission
(options ...Option)
pkg/process/procutil/process_linux_test.go:36
↓ 31 callersFunctionlineNo
(line)
cmd/agent/gui/views/private/js/codemirror.js:443
↓ 31 callersFunctionlst
(arr)
cmd/agent/gui/views/private/js/codemirror.js:222
↓ 31 callersFunctionmakeProcess
(pid int32, cmdline string)
pkg/process/checks/process_common_test.go:32
↓ 31 callersFunctionnewIPTuple
(srcIP, dstIP string, srcPort, dstPort uint16, proto uint8)
pkg/network/netlink/encoding_test.go:20
↓ 31 callersFunctionparseAndEnrichEventMessage
(t *testing.T, message []byte, conf enrichConfig)
comp/dogstatsd/server/enrich_test.go:72
↓ 31 callersFunctiontestSpan
testSpan avoids typo and inconsistency in test spans (typical pitfall: duration, start time, and end time are aligned, and end time is the one that ne
pkg/trace/stats/concentrator_test.go:48
↓ 31 callersMethodtrackContext
trackContext returns the contextKey associated with the context of the metricSample and tracks that context
pkg/aggregator/context_resolver.go:72
↓ 30 callersMethodClose
Close closes the session with the target host Close will automatically close any open handles created in the session, so you must not use any subscri
pkg/util/winutil/eventlog/session/session.go:33
↓ 30 callersFunctionMakeRef
MakeRef returns a CollectorRef[T] given a T and a priority
pkg/util/containers/metrics/provider/collector.go:23
↓ 30 callersMethodName
()
pkg/collector/check/loader.go:18
↓ 30 callersMethodResolveProcessArgv
(ev *Event, e *Process)
pkg/security/secl/model/field_handlers_unix.go:970
↓ 30 callersMethodSize
Size returns the number of key-value pairs in the database.
pkg/util/trivy/db.go:43
↓ 30 callersMethodStart
(*sync.WaitGroup)
pkg/security/probe/probe_linux.go:72
↓ 30 callersMethodStart
()
pkg/util/startstop/start.go:10
↓ 30 callersMethodStartADockerGetDump
()
pkg/security/tests/module_tester.go:1993
↓ 30 callersMethodStop
()
pkg/network/usm/monitor_windows.go:24
↓ 30 callersFunctionUnmarshalBinary
UnmarshalBinary calls a series of BinaryUnmarshaler
pkg/security/secl/model/unmarshallers_linux.go:611
← previousnext →401–500 of 32,574, ranked by callers