Skip to content

Commit

Permalink
Merge branch 'main' into feat/d1-support
Browse files Browse the repository at this point in the history
  • Loading branch information
evanderkoogh authored Sep 16, 2024
2 parents f66a38a + f68aa8d commit 37d546f
Show file tree
Hide file tree
Showing 94 changed files with 6,365 additions and 2,033 deletions.
8 changes: 8 additions & 0 deletions .changeset/big-news-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@microlabs/otel-cf-workers': patch
---

fix: Inline kv.getWithMetadata() attributes to prevent exception

KVAttributes functions don't have access to other functions, so we
needed to inline functionality from get(argArray)
5 changes: 5 additions & 0 deletions .changeset/brave-dots-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Fix config being undefined in some uninstrumented functions
5 changes: 5 additions & 0 deletions .changeset/clean-ducks-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

fix: refactor to modern build tooling and resolve import issues
5 changes: 5 additions & 0 deletions .changeset/cool-buttons-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

fix: correct `cache.hit` attribute (#84)
5 changes: 5 additions & 0 deletions .changeset/cuddly-cars-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Fix telemetry sdk attributes
7 changes: 7 additions & 0 deletions .changeset/curly-sloths-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@microlabs/otel-cf-workers': patch
---

fix: Use extensions in all imports

This fixes unit tests not working due to non-ESM imports.
5 changes: 5 additions & 0 deletions .changeset/dirty-buses-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

chore: Lock @opentelemetry/api at 1.6.x
5 changes: 5 additions & 0 deletions .changeset/fifty-wolves-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

fix: Rename version metadata attribute to match binding name
5 changes: 5 additions & 0 deletions .changeset/fluffy-wasps-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Add back instrumentation of fetch in service bindings
5 changes: 5 additions & 0 deletions .changeset/four-students-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': minor
---

Complete overhaul of the build system thanks to @Cherry
5 changes: 5 additions & 0 deletions .changeset/gold-beers-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

Fix importing issues. Fixes #162
5 changes: 5 additions & 0 deletions .changeset/hot-dodos-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Add version metadata to attributes if found
5 changes: 5 additions & 0 deletions .changeset/kind-ladybugs-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

chore: Update @changesets/cli
5 changes: 5 additions & 0 deletions .changeset/nervous-poets-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

chore: Remove pnpm cache in release action
5 changes: 5 additions & 0 deletions .changeset/new-horses-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

fix: Remove publish script to prevent double publish
5 changes: 5 additions & 0 deletions .changeset/new-lions-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Prevent incorrect detection of rpc bindings
5 changes: 5 additions & 0 deletions .changeset/plenty-snakes-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

Fix regression in OTLP json encoding (thx @gdaszuta)
5 changes: 5 additions & 0 deletions .changeset/polite-days-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

fix: Set has_result to false when there is no value returned in kv.getWithMetadata()
5 changes: 5 additions & 0 deletions .changeset/polite-dots-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Fix DO storage instrumentation extra attributes
5 changes: 5 additions & 0 deletions .changeset/polite-schools-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Fix DO storage put when providing an object with multiple values
5 changes: 5 additions & 0 deletions .changeset/poor-lobsters-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

fix: Revert import of packge.json breaking module resolution
37 changes: 36 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,56 @@
"@microlabs/otel-cf-workers": "1.0.0-rc.9"
},
"changesets": [
"big-news-lick",
"brave-dots-develop",
"calm-tips-laugh",
"clean-ducks-juggle",
"cool-buttons-melt",
"cuddly-cars-give",
"curly-sloths-love",
"dirty-buses-wash",
"early-yaks-sparkle",
"eight-crabs-applaud",
"fifty-wolves-think",
"flat-schools-repair",
"fluffy-carrots-talk",
"fluffy-wasps-laugh",
"four-students-divide",
"fresh-bees-talk",
"gold-beers-travel",
"healthy-dolphins-yawn",
"heavy-carrots-care",
"hot-dodos-burn",
"kind-ladybugs-swim",
"lovely-pets-impress",
"lucky-apples-clean",
"mighty-timers-float",
"nervous-kids-guess",
"nervous-poets-matter",
"new-gifts-repair",
"new-horses-burn",
"new-lions-collect",
"plenty-snakes-matter",
"polite-days-rush",
"polite-dots-scream",
"polite-schools-sip",
"poor-lobsters-rest",
"pretty-cameras-grin",
"pretty-coins-promise",
"proud-bugs-teach",
"rotten-radios-hope",
"rude-bottles-jog",
"silent-flies-sell",
"smooth-vans-know",
"strange-moose-fetch",
"strong-monkeys-film",
"two-oranges-peel"
"tasty-ghosts-tickle",
"ten-trainers-admire",
"thirty-terms-invent",
"tiny-buckets-behave",
"two-oranges-peel",
"violet-bananas-attend",
"yellow-lamps-sin",
"yellow-wombats-rhyme"
]
}
5 changes: 5 additions & 0 deletions .changeset/pretty-cameras-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

fix(#143): Inline ts-checked-fsm due to module issues
5 changes: 5 additions & 0 deletions .changeset/pretty-coins-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": minor
---

[Breaking] Rename durable object fetch, client fetch and service binding spans
5 changes: 5 additions & 0 deletions .changeset/proud-bugs-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

chore: Bump release version
5 changes: 5 additions & 0 deletions .changeset/rotten-radios-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": minor
---

[Breaking] Rename some instrumented spans for consistency
5 changes: 5 additions & 0 deletions .changeset/rude-bottles-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Make ResolveConfigFn generic
5 changes: 5 additions & 0 deletions .changeset/silent-flies-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

chore: Update @cloudflare/workers-types
5 changes: 5 additions & 0 deletions .changeset/strange-moose-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": minor
---

Export unwrapped global fetch for various advanced use cases
5 changes: 5 additions & 0 deletions .changeset/tasty-ghosts-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": patch
---

Correctly detect version metadata when tag is an empty string. Also, check for RPC bindings in all cases as `isVersionMetadata` was incorrectly picking up rpc bindings too when searching for version bindings.
5 changes: 5 additions & 0 deletions .changeset/ten-trainers-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

Include correct version number in the outputted telemetry
6 changes: 6 additions & 0 deletions .changeset/thirty-terms-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@microlabs/otel-cf-workers': patch
---

EXPERIMENTAL: implement withNextSpan(attrs: Attributes) that will includes those attributes in the next span that is created.
This is useful for adding additional information to spans created by libraries such as when using `fetch` for example.
5 changes: 5 additions & 0 deletions .changeset/tiny-buckets-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": minor
---

Add instrumentation for DO storage alarm methods and deleteAll
5 changes: 5 additions & 0 deletions .changeset/violet-bananas-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@microlabs/otel-cf-workers": minor
---

Add option to disable auto-instrumentation of global fetch and cache API
5 changes: 5 additions & 0 deletions .changeset/yellow-lamps-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

Upgrade dependencies and make @open-telemetry/api a peer-dependency to guard against different otel api implementations.
9 changes: 9 additions & 0 deletions .changeset/yellow-wombats-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@microlabs/otel-cf-workers": patch
---

fix: Avoid calling bind on instances of RpcProperty

This PR inspects the unwrapped value, and if it's constructor is of RpcProperty, it handles binding by returning a different function that calls the RPC property as if it was bound.

Thanks @JacobMarshallPP !
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://editorconfig.org
root = true

[*]
end_of_line = lf
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fixes # [insert GH issue number(s)].

**What this PR solves / how to test:**
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Main branch

# This flow will re-run tests on the main branch after a PR has been merged.

on:
push:
branches:
- main

jobs:
test:
name: 'Tests'
timeout-minutes: 30
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
if: github.repository_owner == 'evanderkoogh'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: 'Install NPM Dependencies'
run: 'pnpm install --frozen-lockfile --child-concurrency=10'
- name: 'Run Tests'
run: 'pnpm run ci'
26 changes: 26 additions & 0 deletions .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pull Request

on: pull_request

jobs:
check:
name: 'Checks'
timeout-minutes: 30
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-checks
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: 'Install NPM Dependencies'
run: 'pnpm install --frozen-lockfile --child-concurrency=10'
- name: 'Run Tests'
run: 'pnpm run ci'
Loading

0 comments on commit 37d546f

Please sign in to comment.