opcensus

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command opcensus counts each service's List/Describe/Get operations for gopherstack-6flj (see services/_WRAPPER_KEY_SWEEP_REMAINDER.md).

The notes on 6flj recorded per-service remainders that turned out wrong twice, each time by a large factor (ec2 "~144" vs. the real ~220+; rds "130+ remaining" vs. the real 26), both times because the wrong number was carried forward instead of being read from the service's own operation list. This tool reads that list directly: for each services/<dir>, it parses every non-test .go file, locates the GetSupportedOperations method (every service implements it; it is the dispatcher's own declared operation set, not a doc comment or a guess), and collects the string literals it returns -- following same-package function calls it makes (ec2 delegates through two helper functions; omics delegates through a dispatch-table constructor) and, where the method instead ranges over a struct field populated elsewhere (a "h.ops" map built in a constructor), falling back to a whole-package scan for string-keyed map literals and index assignments on that field name.

This counts what each service's own dispatcher claims to support, then buckets by List/Describe/Get prefix -- a proxy for "collection or nested-shape response surface," the shape of bug this issue tracks. It says nothing about whether any individual op is correct; that is still a per-op hand read against the pinned SDK deserializer.

Usage:

go run ./cmd/opcensus                # ranked summary to stdout
go run ./cmd/opcensus -json out.json # full per-service detail

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL