Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/component_owners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ components:
# Unmaintained
packages/resource-detector-instana:
- kirrg001
incubator/opentelemetry-sampler-aws-xray:
packages/sampler-aws-xray:
- jj22ee
- yiyuan-he
packages/auto-configuration-propagators:
Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"packages/id-generator-aws-xray": "2.0.1",
"packages/propagation-utils": "0.31.5",
"packages/redis-common": "0.38.0",
"packages/sampler-aws-xray": "0.1.0",
"packages/sql-common": "0.41.0",
"packages/contrib-test-utils": "0.51.0",
"packages/winston-transport": "0.16.0",
Expand Down
8 changes: 0 additions & 8 deletions incubator/opentelemetry-sampler-aws-xray/.eslintrc.js

This file was deleted.

105 changes: 105 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions packages/sampler-aws-xray/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = {
env: {
mocha: true,
commonjs: true,
node: true,
},
...require('../../eslint.config.js'),
};
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# AWS X-Ray Remote Sampler

> This component is still in development and has not been released as an npm package.
This module provides the remote/centralized sampler for AWS X-Ray.

[component owners](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/.github/component_owners.yml): @jj22ee, @yiyuan-he
## Status

| Maturity | [Component Owner](../../.github/component_owners.yml) | Compatibility |
| -------------------------------------- | ----------------------------------------------------- | --------------------- |
| [Beta](../../CONTRIBUTING.md#beta) | @jj22ee @yiyuan-he | API 1.1+<br/>SDK 2.0+ |

This module provides the remote/centralized sampler for AWS X-Ray.

## Usage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "@opentelemetry/sampler-aws-xray",
"version": "0.34.0",
"private": true,
"description": "OpenTelemetry remote sampler for AWS X-Ray",
"version": "0.1.0",
"description": "OpenTelemetry Remote Sampler for AWS X-Ray",
"keywords": [
"aws",
"sampler",
Expand All @@ -11,6 +10,7 @@
"AWS",
"X-Ray"
],
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/sampler-aws-xray#readme",
"license": "Apache-2.0",
"author": "OpenTelemetry Authors",
"bugs": {
Expand All @@ -19,17 +19,26 @@
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"files": [
"build/esm/**/*.js",
"build/esm/**/*.js.map",
"build/esm/**/*.d.ts",
"build/src/**/*.js",
"build/src/**/*.js.map",
"build/src/**/*.d.ts",
"doc",
"LICENSE",
"README.md"
],
"repository": "open-telemetry/opentelemetry-js-contrib",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/open-telemetry/opentelemetry-js-contrib.git",
"directory": "packages/sampler-aws-xray"
},
"scripts": {
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
"compile": "tsc -p .",
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
"compile:with-dependencies": "nx run-many -t compile -p @opentelemetry/sampler-aws-xray",
"lint": "eslint . --ext=ts,js,mjs",
"lint:fix": "eslint . --ext=ts,js,mjs --fix",
Expand All @@ -40,7 +49,7 @@
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
},
"peerDependencies": {
"@opentelemetry/api": "^1.9.0"
"@opentelemetry/api": "^1.1.0"
},
"dependencies": {
"@opentelemetry/core": "^2.0.0",
Expand All @@ -49,7 +58,7 @@
"@opentelemetry/semantic-conventions": "^1.27.0"
},
"devDependencies": {
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/api": "^1.1.0",
"@opentelemetry/sdk-trace-node": "^2.0.0",
"@types/mocha": "10.0.10",
"@types/node": "18.18.14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ import {
DEFAULT_TARGET_POLLING_INTERVAL_SECONDS,
RuleCache,
} from './rule-cache';

import { SamplingRuleApplier } from './sampling-rule-applier';
/** @knipignore */
import { PACKAGE_NAME } from './version';

// 5 minute default sampling rules polling interval
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"packages/id-generator-aws-xray": {},
"packages/propagation-utils": {},
"packages/redis-common": {},
"packages/sampler-aws-xray": {},
"packages/sql-common": {},
"packages/contrib-test-utils": {},
"packages/winston-transport": {},
Expand Down
Loading