Browse Source

otel自监控

liubing 3 weeks ago
parent
commit
2076f84899
5 changed files with 26 additions and 23 deletions
  1. 1 1
      package-lock.json
  2. 24 19
      public/index.html
  3. 0 0
      public/js/cecf-otel.umd.js
  4. 1 1
      src/App.vue
  5. 0 2
      vue.config.js

+ 1 - 1
package-lock.json

@@ -6911,7 +6911,7 @@
       "dev": true
     },
     "cecf-oteljs-lib": {
-      "version": "git+ssh://git@git.cestong.com.cn:8162/cecf/otel-webjs-library.git#f32af3635b1fbcbce899a346d0aebe6e6c125692",
+      "version": "git+ssh://git@git.cestong.com.cn:8162/cecf/otel-webjs-library.git#6575e21ccddc7825927efb58f23e90d27c6ef1af",
       "from": "git+ssh://git@git.cestong.com.cn:8162/cecf/otel-webjs-library.git",
       "requires": {
         "@opentelemetry/api": "^1.7.0",

+ 24 - 19
public/index.html

@@ -10,13 +10,17 @@
   <title>
     <%= webpackConfig.name %> - 可观测平台
   </title>
+<!--  <script src="./js/cecf-otel.umd.js" data-service-name="ob-front"-->
+<!--          data-app-alias="OBSERVE" data-service-version="1.0.0"-->
+<!--          data-exporter-otlp-trace-endpoint="http://otel-collector.cestong.com.cn/v1/traces"-->
+<!--  ></script>-->
   <meta name="keywords" content="go-admin,gin,权限管理系统,gin-admin,gin-vue-admin,go">
-<!--  <script type="module" src="document-load.js"></script>-->
+  <!--  <script type="module" src="document-load.js"></script>-->
   <meta name="description"
-    content="基于Gin + Vue + Element UI的前后端分离权限管理系统,初始化极度简单,只需要配置文件中,修改数据库连接,系统启动后会自动初始化数据库信息以及必须的基础数据">
+        content="基于Gin + Vue + Element UI的前后端分离权限管理系统,初始化极度简单,只需要配置文件中,修改数据库连接,系统启动后会自动初始化数据库信息以及必须的基础数据">
 
   <% if (htmlWebpackPlugin.options.builtTime) { %>
-    <meta name="builtTime" content="<%= htmlWebpackPlugin.options.builtTime %>">
+  <meta name="builtTime" content="<%= htmlWebpackPlugin.options.builtTime %>">
   <% } %>
   <style>
     html,
@@ -207,32 +211,33 @@
       color: #FFF;
       opacity: 0.5;
     }
-    .loader_box{
+
+    .loader_box {
       position: absolute;
       width: 720px;
       height: 450px;
-      top:50%;
-      left:50%;
-      margin-top:-225px;
-      margin-left:-360px;
+      top: 50%;
+      left: 50%;
+      margin-top: -225px;
+      margin-left: -360px;
     }
   </style>
 </head>
 
 <body>
-  <div id="app">
-    <!-- <div id="loader-wrapper">
-      <div id="loader"></div>
-      <div class="loader-section section-left"></div>
-      <div class="loader-section section-right"></div>
-      <div class="load_title">正在加载系统资源,请耐心等待</div>
-    </div> -->
-    <div style="position: relative; background: #7171C6;width:100%;height: 100%;">
-      <div class="loader_box">
-        <img src="./loading4.gif" width="720px" height="450px" alt=""/>
+<div id="app">
+  <!-- <div id="loader-wrapper">
+    <div id="loader"></div>
+    <div class="loader-section section-left"></div>
+    <div class="loader-section section-right"></div>
+    <div class="load_title">正在加载系统资源,请耐心等待</div>
+  </div> -->
+  <div style="position: relative; background: #7171C6;width:100%;height: 100%;">
+    <div class="loader_box">
+      <img src="./loading4.gif" width="720px" height="450px" alt=""/>
       <div>
+      </div>
     </div>
-  </div>
 
 </body>
 

File diff suppressed because it is too large
+ 0 - 0
public/js/cecf-otel.umd.js


+ 1 - 1
src/App.vue

@@ -3,7 +3,7 @@
     <router-view />
   </div>
 </template>
-
+<!---->
 <script>
 export default {
   name: 'App'

+ 0 - 2
vue.config.js

@@ -20,8 +20,6 @@ const port = process.env.port || process.env.npm_config_port || 9527 // dev port
 module.exports = {
   transpileDependencies: [
     'zone.js',
-    /@opentelemetry\/.*/,
-    /cecf-oteljs-lib/
   ],
   /**
    * You will need to set publicPath if you plan to deploy your site under a sub path,

Some files were not shown because too many files changed in this diff