MCPcopy Create free account

hub / github.com/aws-observability/aws-otel-go / functions

Functions179 in github.com/aws-observability/aws-otel-go

FunctionTestExpiredReservoir
assert that reservoir quota is expired.
samplers/aws/xray/internal/reservoir_test.go:14
FunctionTestExpiredReservoirBorrowSample
assert that reservoir is expired, borrowing 1 req during that second.
samplers/aws/xray/internal/rule_test.go:102
FunctionTestExpiredReservoirSameAsClockTime
assert that reservoir quota is still expired since now time is equal to expiresAt time.
samplers/aws/xray/internal/reservoir_test.go:30
FunctionTestExpiredReservoirTraceIDRationBasedSample
assert that reservoir is expired, borrowed 1 req during that second so now using traceIDRatioBased sampler.
samplers/aws/xray/internal/rule_test.go:125
FunctionTestFallbackSamplerDescription
assert fallback sampling description.
samplers/aws/xray/fallback_sampler_test.go:59
FunctionTestFreshRule
assert that rule is active and not stale.
samplers/aws/xray/internal/rule_test.go:38
FunctionTestGenerateClientID
assert that able to successfully generate the client ID.
samplers/aws/xray/internal/manifest_test.go:1478
FunctionTestGetSamplingRules
(t *testing.T)
samplers/aws/xray/internal/client_test.go:38
FunctionTestGetSamplingRulesWithMissingValues
(t *testing.T)
samplers/aws/xray/internal/client_test.go:130
FunctionTestGetSamplingTargets
(t *testing.T)
samplers/aws/xray/internal/client_test.go:168
FunctionTestGetSamplingTargetsMissingValues
(t *testing.T)
samplers/aws/xray/internal/client_test.go:207
FunctionTestInactiveRule
assert that rule is inactive but not stale.
samplers/aws/xray/internal/rule_test.go:56
FunctionTestInvalidResponseBody
(t *testing.T)
samplers/aws/xray/internal/client_test.go:280
FunctionTestLongStrings
End of Amazon modification.
samplers/aws/xray/internal/match_test.go:110
FunctionTestMatchAgainstManifestRules
assert that manifest rule r2 is a match for sampling.
samplers/aws/xray/internal/manifest_test.go:82
FunctionTestMatchAgainstManifestRulesAttributeMatch
assert that if rules has attribute and span has those attribute with same value then matching will happen.
samplers/aws/xray/internal/manifest_test.go:134
FunctionTestMatchAgainstManifestRulesAttributeWildCardMatch
assert that wildcard attributes will match.
samplers/aws/xray/internal/manifest_test.go:176
FunctionTestMatchAgainstManifestRulesNoAttributeMatch
assert that if some of the rules attributes are not present in span attributes then matching will not happen.
samplers/aws/xray/internal/rule_test.go:539
FunctionTestMatchAgainstManifestRulesNoMatch
assert that when no known rule is match then returned rule is nil, matched flag is false.
samplers/aws/xray/internal/manifest_test.go:220
FunctionTestMinPollInterval
asserts the minimum value of all the targets.
samplers/aws/xray/internal/manifest_test.go:1426
FunctionTestMinPollIntervalNegativeCase
asserts the minimum value of all the targets when some targets has negative interval.
samplers/aws/xray/internal/manifest_test.go:1454
FunctionTestMinPollIntervalNoRules
asserts that manifest with empty rules return 0.
samplers/aws/xray/internal/manifest_test.go:1468
FunctionTestMinPollIntervalZeroCase
asserts the minimum value of all the targets when some targets has 0 interval.
samplers/aws/xray/internal/manifest_test.go:1440
FunctionTestMixedSnapshots
assert that fresh and inactive rules are not included in a snapshot.
samplers/aws/xray/internal/manifest_test.go:1146
FunctionTestNewClient
(t *testing.T)
samplers/aws/xray/internal/client_test.go:237
FunctionTestNewConfig
assert that user provided values are tied to config.
samplers/aws/xray/remote_sampler_config_test.go:18
FunctionTestNewManifest
assert that new manifest has certain non-nil attributes.
samplers/aws/xray/internal/manifest_test.go:34
FunctionTestOtlpUdpClient
(t *testing.T)
exporters/xrayudp/client_test.go:33
FunctionTestOtlpUdpExporter
(t *testing.T)
exporters/xrayudp/exporter_test.go:13
FunctionTestPartialUserProvidedConfig
assert when some config is provided by user then other config will be picked up from default config.
samplers/aws/xray/remote_sampler_config_test.go:44
FunctionTestPreserveRulesWithSameRuleProperties
Validate Rules are preserved when a rule is updated with the same ruleProperties.
samplers/aws/xray/internal/manifest_test.go:1649
FunctionTestQuotaBalanceAfterPortionOfSecond
assert that when quotaBalance is assigned the correct value after a portion of a second.
samplers/aws/xray/internal/reservoir_test.go:208
FunctionTestQuotaBalanceBorrow
assert quotaBalance and capacity of borrowing case.
samplers/aws/xray/internal/reservoir_test.go:226
FunctionTestQuotaBalanceIncreaseByOneBorrowCase
assert that when borrow is true and elapsedTime is greater than 1, then we only increase the quota balance by 1.
samplers/aws/xray/internal/reservoir_test.go:244
FunctionTestRefreshManifestAddOneInvalidRule
assert that 1 valid and 1 invalid rule update only valid rule gets stored to the manifest.
samplers/aws/xray/internal/manifest_test.go:527
FunctionTestRefreshManifestError
assert that if collector is not enabled at specified endpoint, returns an error.
samplers/aws/xray/internal/manifest_test.go:65
FunctionTestRefreshManifestIncorrectVersion
assert that rule with version greater than one does not update to the manifest.
samplers/aws/xray/internal/manifest_test.go:483
FunctionTestRefreshManifestMissingRuleName
assert that rule with no RuleName does not update to the manifest.
samplers/aws/xray/internal/manifest_test.go:441
FunctionTestRefreshManifestMissingServiceName
assert that rule with no ServiceName updates manifest successfully with empty values.
samplers/aws/xray/internal/manifest_test.go:399
FunctionTestRefreshManifestRules
(t *testing.T)
samplers/aws/xray/internal/manifest_test.go:252
FunctionTestRefreshManifestTargetNoSnapShot
assert that inactive rule so return early without doing getSamplingTargets call.
samplers/aws/xray/internal/manifest_test.go:612
FunctionTestRefreshManifestTargets
assert that refresh manifest targets successfully updates reservoir value for a rule.
samplers/aws/xray/internal/manifest_test.go:652
FunctionTestRefreshManifestTargetsPollIntervalUpdateTest
assert that refresh manifest targets successfully updates samplingTargetsPollingInterval.
samplers/aws/xray/internal/manifest_test.go:722
FunctionTestRemoteSamplerDescription
TestRemoteSamplerDescription assert remote sampling description.
samplers/aws/xray/remote_sampler_test.go:13
FunctionTestResetQuotaUsageRotation
(t *testing.T)
samplers/aws/xray/internal/reservoir_test.go:179
FunctionTestRespondsWithErrorStatusCode
(t *testing.T)
samplers/aws/xray/internal/client_test.go:266
FunctionTestSampleUsingFallbackSampler
assert sampling using fallback sampler.
samplers/aws/xray/fallback_sampler_test.go:16
FunctionTestSnapshot
assert on snapshot of sampling statistics counters.
samplers/aws/xray/internal/rule_test.go:74
FunctionTestSnapshots
assert that snapshots returns an array of valid sampling statistics.
samplers/aws/xray/internal/manifest_test.go:1065
FunctionTestSortBasedOnPriority
assert that sorting an unsorted array results in a sorted array - check priority.
samplers/aws/xray/internal/manifest_test.go:1348
FunctionTestSortBasedOnRuleName
assert that sorting an unsorted array results in a sorted array - check priority and rule name.
samplers/aws/xray/internal/manifest_test.go:1387
FunctionTestStaleRule
assert that rule is active but stale due to quota is expired.
samplers/aws/xray/internal/rule_test.go:20
FunctionTestTraceIDRatioBasedSamplerFixedRateZero
assert that when fixed rate is 0 traceIDRatioBased sampler will not sample the trace.
samplers/aws/xray/internal/rule_test.go:196
FunctionTestTraceIDRatioBasedSamplerReservoirIsConsumedSample
assert that sampling using traceIDRationBasedSampler when reservoir quota is consumed.
samplers/aws/xray/internal/rule_test.go:172
FunctionTestUdpExporter
(t *testing.T)
exporters/xrayudp/udp_exporter_test.go:36
FunctionTestUpdateReservoir
assert that a missing sampling rule in manifest does not update it's reservoir values.
samplers/aws/xray/internal/manifest_test.go:986
FunctionTestUpdateReservoirMissingFixedRate
assert that a sampling target with missing Fixed Rate returns an error.
samplers/aws/xray/internal/manifest_test.go:1013
FunctionTestUpdateReservoirMissingRuleName
assert that a sampling target with missing Rule Name returns an error.
samplers/aws/xray/internal/manifest_test.go:1039
FunctionTestUpdateTargets
assert that a valid sampling target updates its rule.
samplers/aws/xray/internal/manifest_test.go:803
FunctionTestUpdateTargetsRefreshFlagTest
assert that when last rule modification time is greater than manifest refresh time we need to update manifest out of band (async).
samplers/aws/xray/internal/manifest_test.go:857
FunctionTestUpdateTargetsUnprocessedStatistics
unprocessed statistics error code is 5xx then updateTargets returns an error, if 4xx refresh flag set to true.
samplers/aws/xray/internal/manifest_test.go:913
FunctionTestUpdatingRulesAndTargetsWhileMatchingConcurrentSafe
validate no data race is happening when updating rule properties and rule targets in manifest while matching.
samplers/aws/xray/internal/manifest_test.go:1558
FunctionTestUpdatingRulesAndTargetsWhileSamplingConcurrentSafe
validate no data race is happening when updating rule properties and rule targets in manifest while sampling.
samplers/aws/xray/internal/rule_test.go:560
FunctionTestUpdatingRulesWhileMatchingConcurrentSafe
validate no data race is happening when updating rule properties in manifest while matching.
samplers/aws/xray/internal/manifest_test.go:1485
FunctionTestUpdatingSamplingStatisticsWhenSamplingConcurrentSafe
validate no data race is when capturing sampling statistics in manifest while sampling.
samplers/aws/xray/internal/manifest_test.go:1786
FunctionTestValidEndpoint
assert that valid endpoint would not result in an error.
samplers/aws/xray/remote_sampler_config_test.go:57
FunctionTestValidateConfigNegativeDuration
assert negative sampling rules interval leads to an error.
samplers/aws/xray/remote_sampler_config_test.go:90
FunctionTestValidateConfigPositiveDuration
assert positive sampling rules interval.
samplers/aws/xray/remote_sampler_config_test.go:96
FunctionTestValidateHostNameWithSpecialCharacterEndpoint
assert that host name with special character would not result in an error.
samplers/aws/xray/remote_sampler_config_test.go:68
FunctionTestValidateInvalidEndpoint
assert that endpoint without host name would not result in an error.
samplers/aws/xray/remote_sampler_config_test.go:79
FunctionTestWildCardMatchNegative
assert wildcard match is negative.
samplers/aws/xray/internal/match_test.go:79
FunctionTestWildCardMatchPositive
2025-05-07: Begin Amazon modification. assert wildcard match is positive.
samplers/aws/xray/internal/match_test.go:18
FunctionTestZeroCapacityFailBorrow
(t *testing.T)
samplers/aws/xray/internal/reservoir_test.go:155
MethodWrite
(byteArray []byte)
exporters/xrayudp/udp_exporter_test.go:22
Methodapply
(*config)
samplers/aws/xray/remote_sampler_config.go:33
Methodapply
(cfg *config)
samplers/aws/xray/remote_sampler_config.go:38
Methodapply
(cfg *config)
exporters/xrayudp/config.go:20
Functionmain
()
sampleapp/main.go:42
Methodnow
now returns current time according to the standard time package.
samplers/aws/xray/internal/clock.go:22
← previous101–179 of 179, ranked by callers