Meta tags:
description= Java Byte Code Editor. Contribute to ymm-tech/gravity development by creating an account on GitHub.;
Headings (most frequently used words):
navigation, gravity, repository, about, files, footer, topics, resources, stars, watchers, forks, 满帮agent方案, menu, latest, commit, history, folders, and, agent, 简单使用, releases, packages, used, by, contributors, languages,
Text of the page (most frequently used words):
#gravity (41), manbang (23), plugin (21), 2022 (16), method (16), public (16), agent (15), github (13), aopadvice (11), driver (10), append (10), final (10), and (10), code (9), monitor (9), trade (8), shippers (8), builder (8), java (7), cargo (7), return (7), you (6), repository (6), new (6), context (6), for (6), class (6), string (6), security (5), license (5), readme (5), aopplugindefine (5), entermethod (5), enter (5), exitmethod (5), exit (5), address (5), navigation (4), forks (4), stars (4), advice (4), plugintransformer (4), transform (4), the (4), plugindefine (4), 南京市 (4), arg (4), success (4), stringbuilder (4), void (4), override (4), all (4), signed (4), your (4), support (4), copilot (4), properties (3), apache (3), resources (3), javaagent (3), byte (3), editor (3), about (3), demo (3), postorder (3), 雨花台区 (3), 万博科技园 (3), 运满满总部 (3), 50立方 (3), 10吨 (3), acceptorder (3), loadcargo (3), delivercargo (3), publish (3), app (3), main (3), order (3), version (3), log (3), result (3), getname (3), argument (3), elementmatchers (3), api (3), more (3), files (3), commit (3), actions (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), community (2), status (2), footer (2), report (2), watching (2), watchers (2), custom (2), activity (2), interceptor (2), bytecode (2), aop (2), topics (2), getclassloader (2), current (2), classloader (2), sun (2), misc (2), launcher (2), appclassloader (2), 18b4aac2 (2), number (2), true (2), load (2), deliver (2), jar (2), xxxx (2), user (2), home (2), services (2), tostring (2), info (2), object (2), getmethod (2), executecontext (2), logger (2), logging (2), util (2), static (2), implements (2), since (2), named (2), dependency (2), groupid (2), artifactid (2), items (2), pom (2), xml (2), last (2), message (2), name (2), commits (2), latest (2), menu (2), must (2), star (2), settings (2), insights (2), projects (2), ymm (2), tech (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), can, perform, that, action, this, time, not, share, personal, information, manage, cookies, contact, docs, privacy, terms, 2026, inc, languages, contributors, used, packages, releases, 具体示例已经放在, gravityagent, instrument, 加载插件, gravityserviceboot, startservices, 开始启动重力服务, postorderresult, acceptorderresult, loadcargoresult, delivercargoresult, 内容为新创建的插件定义, 打包该插件, 并将打包好的插件放置于, 目录下, 路径可以通过执行, 为应用名, 可以自行定义, 方法在启动时, 下载路径, 可以观察到控制台输出预期想要的业务出入参, appname, xshowsettings, meta, inf, spi, getresult, length, int, getarguments, getlogger, private, 具体织入的逻辑, withmethod, ismethod, getplugins, gettypematcher, typedescription, elementmatcher, 插件定义, 描述目标的织入点, 这时候, 我们希望可以监控该笔订单的行为, 决定通过无侵入方式打印出入参, 首先引入pom依賴, args, 发货订单, false, startswith, nonnull, objects, boolean, 发布订单, 首先简单模拟一笔发货订单场景, 简单使用, 一些常规场景的增强, ttl, 常规增强, common, 业务系统性能实时监控, 链路埋点, 满帮apm解决方案, hubble, mock演练测试, 涵盖多场景, 多种组件的模拟, 满帮测试框架, mock, 故障演练, 模拟测试, 涵盖多种中间件, 可模拟多场景异常, 满帮混沌场景, venom, 涵盖rpc, redis, config等多种中间件组件, 彻底隔离api与实现, 让开发同学无痛无感升级, 后续也将开源, 敬请期待, 满帮mesh方案, ironman, 业务场景, 场景名称, gravity是满帮基于, 自研的一款字节码层面aop框架, 目的是基于满帮业务场景, 为插件开发同学降低字节码增强难度, 目前满帮内部基于gravity开发出了六十余款插件, 大致覆盖的业务场景如下, 满帮agent方案, view, date, folders, history, open, file, tags, branches, fork, change, notification, notifications, wiki, pull, requests, issues, dismiss, alert, switched, accounts, out, appearance, search, pricing, event, talks, workshops, what, next, partners, company, forum, events, webinars, blog, resource, connect, premium, advanced, add, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, improvements, across, one, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, tasks, automated, work, hosting, review, collaboration, platform, skip, content,
Text of the page (random words):
github ymm tech gravity java byte code editor github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message ymm tech gravity repository navigation code issues 1 1 pull requests actions projects wiki security and quality insights more items gravity public notifications you must be signed in to change notification settings fork 8 8 star 25 25 you must be signed in to star a repository about java byte code editor topics advice aop bytecode interceptor javaagent plugin resources readme apache 2 0 license activity custom properties stars 25 stars watchers 3 watching forks 8 forks report repository main branches tags go to file code open more actions menu latest commit history 14 commits 14 commits folders and files name name last commit message last commit date gravity agent gravity agent gravity demo gravity demo gravity plugin api gravity plugin api gravity plugin gravity plugin license license readme md readme md pom xml pom xml view all files repository files navigation readme apache 2 0 license more items gravity 满帮agent方案 gravity agent gravity是满帮基于 java agent 自研的一款字节码层面aop框架 目的是基于满帮业务场景 为插件开发同学降低字节码增强难度 目前满帮内部基于gravity开发出了六十余款插件 大致覆盖的业务场景如下 场景名称 简介 业务场景 ironman 满帮mesh方案 涵盖rpc mq redis config等多种中间件组件 彻底隔离api与实现 让开发同学无痛无感升级 后续也将开源 敬请期待 venom 满帮混沌场景 故障演练 模拟测试 涵盖多种中间件 可模拟多场景异常 mock 满帮测试框架 mock演练测试 涵盖多场景 多种组件的模拟 hubble 满帮apm解决方案 业务系统性能实时监控 链路埋点 common 常规增强 一些常规场景的增强 比如 ttl 集成 1 简单使用 首先简单模拟一笔发货订单场景 货主 public class shippers 发布订单 public string postorder return 南京市 雨花台区 万博科技园 运满满总部 50立方 10吨 司机 public class driver 接单 public boolean acceptorder string address if objects nonnull address address startswith 南京市 return true return false 装货 public string loadcargo return load cargo success 运货 public string delivercargo return deliver cargo success 发货订单 public class order public static void main string args new order trade public void trade final shippers shippers new shippers final driver driver new driver final string address shippers postorder driver acceptorder address driver loadcargo driver delivercargo 这时候 我们希望可以监控该笔订单的行为 决定通过无侵入方式打印出入参 首先引入pom依賴 dependency groupid io manbang groupid artifactid gravity plugin api artifactid version 1 0 0 version dependency 插件定义 描述目标的织入点 since 2022 05 19 10 55 public class aopplugindefine implements plugindefine override public elementmatcher typedescription gettypematcher return elementmatchers named io manbang gravity trade driver or elementmatchers named io manbang gravity trade shippers override public plugin getplugins return new plugin plugin advice elementmatchers ismethod io manbang gravity plugin monitor aopadvice withmethod 具体织入的逻辑 since 2022 05 19 11 05 public class aopadvice implements advice private static final java util logging logger log java util logging logger getlogger aopadvice class getname override public void entermethod executecontext context final method method context getmethod final object argument context getarguments final stringbuilder builder new stringbuilder builder append method enter append method getname for int i 0 i argument length i builder append arg number append i append arg append argument i log info builder tostring override public void exitmethod executecontext context final method method context getmethod final object result context getresult final stringbuilder builder new stringbuilder builder append method exit append method getname builder append result append result log info builder tostring 新建 spi 文件 meta inf services io manbang gravity plugin plugindefine 内容为新创建的插件定义 aopplugindefine 打包该插件 并将打包好的插件放置于 user home gravity cargo publish app agent 目录下 user home 路径可以通过执行 java xshowsettings properties version 得到 cargo publish app 为应用名 可以自行定义 执行 order 的 main 方法在启动时 新增 vm 命令 javaagent xxxx xxxx gravity agent jar appname cargo publish app gravity agent jar 下载路径 agent 可以观察到控制台输出预期想要的业务出入参 五月 19 2022 4 49 05 下午 io manbang gravity agent gravityagent instrument 信息 加载插件 aopplugindefine 五月 19 2022 4 49 05 下午 io manbang gravity agent plugintransformer transform 信息 io manbang gravity trade shippers 五月 19 2022 4 49 05 下午 io manbang gravity agent plugintransformer getclassloader 信息 the current classloader is sun misc launcher appclassloader 18b4aac2 plugindefine aopplugindefine transform io manbang gravity trade shippers 五月 19 2022 4 49 06 下午 io manbang gravity agent gravityserviceboot startservices 信息 开始启动重力服务 五月 19 2022 4 49 06 下午 io manbang gravity agent plugintransformer transform 信息 io manbang gravity trade driver 五月 19 2022 4 49 06 下午 io manbang gravity agent plugintransformer getclassloader 信息 the current classloader is sun misc launcher appclassloader 18b4aac2 plugindefine aopplugindefine transform io manbang gravity trade driver 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice entermethod 信息 method enter postorder 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice exitmethod 信息 method exit postorderresult 南京市 雨花台区 万博科技园 运满满总部 50立方 10吨 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice entermethod 信息 method enter acceptorder arg number 0 arg 南京市 雨花台区 万博科技园 运满满总部 50立方 10吨 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice exitmethod 信息 method exit acceptorderresult true 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice entermethod 信息 method enter loadcargo 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice exitmethod 信息 method exit loadcargoresult load cargo success 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice entermethod 信息 method enter delivercargo 五月 19 2022 4 49 06 下午 io manbang gravity plugin monitor aopadvice exitmethod 信息 method exit delivercargoresult deliver cargo success 具体示例已经放在 gravity demo 和 gravity plugin 中 about java byte code editor topics advice aop bytecode interceptor javaagent plugin resources readme apache 2 0 license activity custom properties stars 25 stars watchers 3 watching forks 8 forks report repository releases packages used by contributors languages footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|