MCPcopy Create free account
hub / github.com/anomalyco/opencode / calculatedField

Function calculatedField

infra/monitoring.ts:34–39  ·  view source on GitHub ↗
(field: { name: string; expression: string })

Source from the content-addressed store, hash-verified

32// so tie the field name to the expression while avoiding deploy-to-deploy churn.
33// https://github.com/honeycombio/terraform-provider-honeycombio/issues/852
34const calculatedField = (field: { name: string; expression: string }) => ({
35 ...field,
36 name: `${field.name}_${(
37 Array.from(field.expression).reduce((result, char) => Math.imul(31, result) + char.charCodeAt(0), 0) >>> 0
38 ).toString(36)}`,
39})
40
41const modelHttpErrorsQuery = (product: "go" | "zen") => {
42 const filters = [

Callers 2

modelHttpErrorsQueryFunction · 0.85
providerHttpErrorsQueryFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected