Skip to content

Commit

Permalink
[8.12] [Docs] remove .map from bundle_filepath value (#174834) (#174947)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Docs] remove .map from bundle_filepath value
(#174834)](#174834)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alberto Delgado
Roda","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-01-16T16:59:23Z","message":"[Docs]
remove .map from bundle_filepath value (#174834)\n\nPart
of\r\nhttps://github.com/elastic/observability-docs/issues/3354#issuecomment-1849730927\r\n\r\n##
Summary\r\n\r\n`bundle_filepath` should not contain
`.map`.","sha":"128506c65291562af3ff71a515333af63a05e70a","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.13.0"],"title":"[Docs]
remove .map from bundle_filepath
value","number":174834,"url":"https://github.com/elastic/kibana/pull/174834","mergeCommit":{"message":"[Docs]
remove .map from bundle_filepath value (#174834)\n\nPart
of\r\nhttps://github.com/elastic/observability-docs/issues/3354#issuecomment-1849730927\r\n\r\n##
Summary\r\n\r\n`bundle_filepath` should not contain
`.map`.","sha":"128506c65291562af3ff71a515333af63a05e70a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174834","number":174834,"mergeCommit":{"message":"[Docs]
remove .map from bundle_filepath value (#174834)\n\nPart
of\r\nhttps://github.com/elastic/observability-docs/issues/3354#issuecomment-1849730927\r\n\r\n##
Summary\r\n\r\n`bundle_filepath` should not contain
`.map`.","sha":"128506c65291562af3ff71a515333af63a05e70a"}}]}]
BACKPORT-->

Co-authored-by: Alberto Delgado Roda <[email protected]>
  • Loading branch information
kibanamachine and devcorpio authored Jan 16, 2024
1 parent 16c90ef commit 47c66ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/apm/api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ curl -X POST "http://localhost:5601/api/apm/sourcemaps" \
-H 'Authorization: ApiKey ${YOUR_API_KEY}' \
-F 'service_name="foo"' \
-F 'service_version="1.0.0"' \
-F 'bundle_filepath="/test/e2e/general-usecase/bundle.js.map"' \
-F 'bundle_filepath="/test/e2e/general-usecase/bundle.js"' \
-F 'sourcemap="{\"version\":3,\"file\":\"static/js/main.chunk.js\",\"sources\":[\"fleet-source-map-client/src/index.css\",\"fleet-source-map-client/src/App.js\",\"webpack:///./src/index.css?bb0a\",\"fleet-source-map-client/src/index.js\",\"fleet-source-map-client/src/reportWebVitals.js\"],\"sourcesContent\":[\"content\"],\"mappings\":\"mapping\",\"sourceRoot\":\"\"}"' <1>
--------------------------------------------------
<1> Alternatively, upload the source map as a file with `-F 'sourcemap=@path/to/source_map/bundle.js.map'`
Expand Down Expand Up @@ -647,7 +647,7 @@ curl -X GET "http://localhost:5601/api/apm/sourcemaps" \
"body": {
"serviceName": "foo",
"serviceVersion": "1.0.0",
"bundleFilepath": "/test/e2e/general-usecase/bundle.js.map",
"bundleFilepath": "/test/e2e/general-usecase/bundle.js",
"sourceMap": {
"version": 3,
"file": "static/js/main.chunk.js",
Expand Down

0 comments on commit 47c66ee

Please sign in to comment.