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
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/plugin-hooks",
"version": "0.3.2",
"version": "0.3.3-beta.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -21,13 +21,11 @@
"@envelop/core": "^3.0.4",
"eslint": "^8.31.0",
"graphql": "^16.6.0",
"jest": "^29.6.4",
"newrelic": "11.0.0"
"jest": "^29.6.4"
},
"peerDependencies": {
"@envelop/core": "*",
"graphql": "*",
"newrelic": "11.0.0"
"graphql": "*"
},
"repository": {
"type": "git",
Expand Down
8 changes: 1 addition & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
const agent = require('./telemetry/register');

const handleBeforeAllHooks = require("./handleBeforeAllHooks");

Expand All @@ -34,10 +33,7 @@ async function hooksPlugin(config) {
});

return {
async onExecute({ args, setResultAndStopExecution, extendContext }) {
await agent.startSegment('handleBeforeAllHooks:onExecute', true, async() => {


async onExecute({ args, setResultAndStopExecution, extendContext }) {
const query = args.contextValue.params.query;

const { document, contextValue: context } = args;
Expand Down Expand Up @@ -95,8 +91,6 @@ async function hooksPlugin(config) {
*/

return {};
});

},
};
} catch (err) {
Expand Down
15 changes: 0 additions & 15 deletions src/telemetry/agents/log.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/telemetry/register.js

This file was deleted.

Loading